Lets make this work with MySQL.

This commit is contained in:
Brianna 2020-10-19 13:26:18 -05:00
parent dda9a47f01
commit ff449d4dce
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ public class _2_EntityStacks extends DataMigration {
statement.execute("CREATE TABLE " + tablePrefix + "stacked_entities (" + statement.execute("CREATE TABLE " + tablePrefix + "stacked_entities (" +
"uuid VARCHAR(36) PRIMARY KEY NOT NULL," + "uuid VARCHAR(36) PRIMARY KEY NOT NULL," +
"host INTEGER NOT NULL," + "host INTEGER NOT NULL," +
"serialized_entity VARBINARY NOT NULL" + "serialized_entity VARBINARY(255) NOT NULL" +
")"); ")");
} }
} }

View File

@ -23,7 +23,7 @@ public class _3_BlockStacks extends DataMigration {
statement.execute("CREATE TABLE " + tablePrefix + "blocks (" + statement.execute("CREATE TABLE " + tablePrefix + "blocks (" +
"id INTEGER PRIMARY KEY" + autoIncrement + ", " + "id INTEGER PRIMARY KEY" + autoIncrement + ", " +
"amount INTEGER NOT NULL," + "amount INTEGER NOT NULL," +
"material STRING NOT NULL," + "material TEXT NOT NULL," +
"world TEXT NOT NULL, " + "world TEXT NOT NULL, " +
"x DOUBLE NOT NULL, " + "x DOUBLE NOT NULL, " +
"y DOUBLE NOT NULL, " + "y DOUBLE NOT NULL, " +