[jOOQ/jOOQ#9506] Rename logMigration() to logPending()
This commit is contained in:
parent
8ba74dc91e
commit
7903638c6f
@ -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();
|
||||
}
|
||||
}
|
||||
@ -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.
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user