[jOOQ/jOOQ#9506] Rename logMigration() to logPending()

This commit is contained in:
Lukas Eder 2024-11-27 10:56:46 +01:00
parent 8ba74dc91e
commit 7903638c6f
3 changed files with 5 additions and 5 deletions

View File

@ -55,10 +55,10 @@ import org.apache.maven.plugins.annotations.Mojo;
requiresDependencyResolution = TEST,
threadSafe = true
)
public class LogMigrationMojo extends AbstractMigrateMojo {
public class LogPendingMojo extends AbstractMigrateMojo {
@Override
final void execute1(Migration migration) throws Exception {
migration.logMigration();
migration.logPending();
}
}

View File

@ -102,7 +102,7 @@ public interface Migration extends Scope {
/**
* Log the pending migration to the configured logger.
*/
void logMigration() throws DataMigrationVerificationException;
void logPending() throws DataMigrationVerificationException;
/**
* Log the untracked database changes of the migration schemas.

View File

@ -100,7 +100,7 @@ import org.jooq.tools.json.JSONArray;
*/
final class MigrationImpl extends AbstractScope implements Migration {
static final JooqLogger log = JooqLogger.getLogger(Migration.class);
static final JooqLogger log = JooqLogger.getLogger(MigrationImpl.class);
final HistoryImpl history;
final Commit to;
Commit from;
@ -596,7 +596,7 @@ final class MigrationImpl extends AbstractScope implements Migration {
}
@Override
public final void logMigration() {
public final void logPending() {
Query[] q = queries().queries();
log.info("Pending queries from " + from().id() + " to " + to().id() + ": " + (q.length == 0 ? "none" : ""));
log(q);