Set the version on the existing migrations
This commit is contained in:
parent
5895772c58
commit
62baeb3e15
1 changed files with 2 additions and 2 deletions
|
@ -92,7 +92,7 @@ public class DatabaseMigrations
|
||||||
|
|
||||||
public static void initMigrations() throws SQLException {
|
public static void initMigrations() throws SQLException {
|
||||||
Migration migrationsTable = builder()
|
Migration migrationsTable = builder()
|
||||||
.withVersion(0)
|
.withVersion(1)
|
||||||
.withTableID("migrations");
|
.withTableID("migrations");
|
||||||
|
|
||||||
PreparedStatement statement = DatabaseWrapper.get().prepareStatement("CREATE TABLE `migrations` (" +
|
PreparedStatement statement = DatabaseWrapper.get().prepareStatement("CREATE TABLE `migrations` (" +
|
||||||
|
@ -105,7 +105,7 @@ public class DatabaseMigrations
|
||||||
|
|
||||||
Migration blocksTable = builder()
|
Migration blocksTable = builder()
|
||||||
.withTableID("blocks")
|
.withTableID("blocks")
|
||||||
.withVersion(0);
|
.withVersion(1);
|
||||||
|
|
||||||
PreparedStatement makeBlocksTable = DatabaseWrapper.get().prepareStatement("CREATE TABLE `blocks` (" +
|
PreparedStatement makeBlocksTable = DatabaseWrapper.get().prepareStatement("CREATE TABLE `blocks` (" +
|
||||||
" `time` timestamp NOT NULL DEFAULT current_timestamp()," +
|
" `time` timestamp NOT NULL DEFAULT current_timestamp()," +
|
||||||
|
|
Reference in a new issue