Skip to content

Commit

Permalink
0002782: Duplicate data gap immediately after upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Sep 9, 2016
1 parent a78ac77 commit 837b692
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -60,6 +60,11 @@ public String beforeUpgrade(ISymmetricDialect symmetricDialect, String tablePref
engine.getSqlTemplate().update("update " + tablePrefix + "_" + TableConstants.SYM_TRANSFORM_TABLE +
" set update_action = 'UPD_ROW' where update_action is null");
}

String dataGapTableName = tablePrefix + "_" + TableConstants.SYM_DATA_GAP;
if (currentModel.findTable(dataGapTableName) != null) {
engine.getSqlTemplate().update("delete from " + dataGapTableName);
}
}

if (engine.getDatabasePlatform().getName().equals(DatabaseNamesConstants.FIREBIRD) ||
Expand Down

0 comments on commit 837b692

Please sign in to comment.