@@ -26,7 +26,7 @@ public final class MigrationTable {
2626 private static final String INIT_VER_0 = "0" ;
2727
2828 private final Connection connection ;
29- private final boolean checkState ;
29+ private final boolean checkStateOnly ;
3030 private final MigrationPlatform platform ;
3131 private final MigrationScriptRunner scriptRunner ;
3232 private final String catalog ;
@@ -72,11 +72,11 @@ public final class MigrationTable {
7272 /**
7373 * Construct with server, configuration and jdbc connection (DB admin user).
7474 */
75- public MigrationTable (MigrationConfig config , Connection connection , boolean checkState , MigrationPlatform platform ) {
75+ public MigrationTable (MigrationConfig config , Connection connection , boolean checkStateOnly , MigrationPlatform platform ) {
7676 this .platform = platform ;
7777 this .connection = connection ;
7878 this .scriptRunner = new MigrationScriptRunner (connection , platform );
79- this .checkState = checkState ;
79+ this .checkStateOnly = checkStateOnly ;
8080 this .migrations = new LinkedHashMap <>();
8181 this .catalog = null ;
8282 this .allowErrorInRepeatable = config .isAllowErrorInRepeatable ();
@@ -322,7 +322,7 @@ private boolean runMigration(LocalMigrationResource local, MigrationMetaRow exis
322322 private boolean patchInsertMigration (LocalMigrationResource local , int checksum ) throws SQLException {
323323 if (patchInsertVersions != null && patchInsertVersions .contains (local .key ())) {
324324 log .log (INFO , "Patch migration, insert into history {0}" , local .getLocation ());
325- if (!checkState ) {
325+ if (!checkStateOnly ) {
326326 insertIntoHistory (local , checksum , 0 );
327327 }
328328 return true ;
@@ -356,7 +356,7 @@ boolean skipMigration(int checksum, LocalMigrationResource local, MigrationMetaR
356356 */
357357 private boolean patchResetChecksum (MigrationMetaRow existing , int newChecksum ) throws SQLException {
358358 if (isResetOnVersion (existing .getVersion ())) {
359- if (!checkState ) {
359+ if (!checkStateOnly ) {
360360 existing .resetChecksum (newChecksum , connection , updateChecksumSql );
361361 }
362362 return true ;
@@ -373,7 +373,7 @@ private boolean isResetOnVersion(String version) {
373373 * Run a migration script as new migration or update on existing repeatable migration.
374374 */
375375 private void executeMigration (LocalMigrationResource local , String script , int checksum , MigrationMetaRow existing ) throws SQLException {
376- if (checkState ) {
376+ if (checkStateOnly ) {
377377 checkMigrations .add (local );
378378 // simulate the migration being run such that following migrations also match
379379 addMigration (local .key (), createMetaRow (local , checksum , 1 ));
0 commit comments