Remove the reverse list instruction
This commit is contained in:
parent
e0545ce9af
commit
5895772c58
2 changed files with 4 additions and 4 deletions
|
@ -76,6 +76,8 @@ public class DatabaseMigrations
|
|||
pstat.setString(1, tableID);
|
||||
pstat.setInt(2, version);
|
||||
|
||||
LibZontreck.LOGGER.info("SQL QUERY: " + pstat);
|
||||
|
||||
pstat.execute();
|
||||
} catch (SQLException ex)
|
||||
{
|
||||
|
@ -134,10 +136,8 @@ public class DatabaseMigrations
|
|||
private static void executeMigrations()
|
||||
{
|
||||
|
||||
List<Migration> migration = Lists.reverse(migrations);
|
||||
|
||||
Migration lastTableChecked = null;
|
||||
for(Migration m : migration)
|
||||
for(Migration m : migrations)
|
||||
{
|
||||
if(lastTableChecked == null) lastTableChecked = getCurrentTable(m.tableID);
|
||||
else {
|
||||
|
|
Reference in a new issue