Set the version on the existing migrations

This commit is contained in:
zontreck 2024-04-24 03:06:49 -07:00
parent 5895772c58
commit 62baeb3e15

View file

@ -92,7 +92,7 @@ public class DatabaseMigrations
public static void initMigrations() throws SQLException {
Migration migrationsTable = builder()
.withVersion(0)
.withVersion(1)
.withTableID("migrations");
PreparedStatement statement = DatabaseWrapper.get().prepareStatement("CREATE TABLE `migrations` (" +
@ -105,7 +105,7 @@ public class DatabaseMigrations
Migration blocksTable = builder()
.withTableID("blocks")
.withVersion(0);
.withVersion(1);
PreparedStatement makeBlocksTable = DatabaseWrapper.get().prepareStatement("CREATE TABLE `blocks` (" +
" `time` timestamp NOT NULL DEFAULT current_timestamp()," +