diff --git a/gradle.properties b/gradle.properties index 4dcbef4..9cee1dd 100644 --- a/gradle.properties +++ b/gradle.properties @@ -53,7 +53,7 @@ mod_name=Zontreck's Library Mod # The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default. mod_license=GPLv3 # The mod version. See https://semver.org/ -mod_version=1201.13.042424.0126 +mod_version=1201.13.042424.0216 # The group ID for the mod. It is only important when publishing as an artifact to a Maven repository. # This should match the base package used for the mod sources. # See https://maven.apache.org/guides/mini/guide-naming-conventions.html diff --git a/src/main/java/dev/zontreck/libzontreck/memory/world/DatabaseMigrations.java b/src/main/java/dev/zontreck/libzontreck/memory/world/DatabaseMigrations.java index b507c2d..4704c7b 100644 --- a/src/main/java/dev/zontreck/libzontreck/memory/world/DatabaseMigrations.java +++ b/src/main/java/dev/zontreck/libzontreck/memory/world/DatabaseMigrations.java @@ -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 = Lists.reverse(migrations); - Migration lastTableChecked = null; - for(Migration m : migration) + for(Migration m : migrations) { if(lastTableChecked == null) lastTableChecked = getCurrentTable(m.tableID); else {