Fixed bug of ExpansionRepository (introduced yesterday).

This commit is contained in:
LevelX2 2015-01-26 16:07:51 +01:00
parent 0f39b5ad63
commit 89a21923a8

View file

@ -35,7 +35,7 @@ public enum ExpansionRepository {
}
try {
ConnectionSource connectionSource = new JdbcConnectionSource(JDBC_URL);
boolean obsolete = RepositoryUtil.isDatabaseObsolete(connectionSource, VERSION_ENTITY_NAME, 0);
boolean obsolete = RepositoryUtil.isDatabaseObsolete(connectionSource, VERSION_ENTITY_NAME, EXPANSION_DB_VERSION);
if (obsolete) {
TableUtils.dropTable(connectionSource, ExpansionInfo.class, true);