diff --git a/src/main/java/ca/tweetzy/auctionhouse/database/migrations/_25_BidHistoryMigration.java b/src/main/java/ca/tweetzy/auctionhouse/database/migrations/_25_BidHistoryMigration.java index c95201c..8bea1de 100644 --- a/src/main/java/ca/tweetzy/auctionhouse/database/migrations/_25_BidHistoryMigration.java +++ b/src/main/java/ca/tweetzy/auctionhouse/database/migrations/_25_BidHistoryMigration.java @@ -20,7 +20,7 @@ public final class _25_BidHistoryMigration extends DataMigration { "listing_id VARCHAR(36) NOT NULL, " + "bidder_uuid VARCHAR(36) NOT NULL, " + "bidder_name VARCHAR(16) NOT NULL, " + - "currency TEXT NOT NULL DEFAULT 'Vault/Vault'," + + "currency TEXT NOT NULL DEFAULT ('Vault/Vault')," + "currency_item TEXT NULL," + "amount TEXT NOT NULL, " + "world TEXT NOT NULL, " + diff --git a/src/main/java/ca/tweetzy/auctionhouse/database/migrations/_26_MultiSerAndCurrencyMigration.java b/src/main/java/ca/tweetzy/auctionhouse/database/migrations/_26_MultiSerAndCurrencyMigration.java index af41da0..25e424d 100644 --- a/src/main/java/ca/tweetzy/auctionhouse/database/migrations/_26_MultiSerAndCurrencyMigration.java +++ b/src/main/java/ca/tweetzy/auctionhouse/database/migrations/_26_MultiSerAndCurrencyMigration.java @@ -15,7 +15,7 @@ public final class _26_MultiSerAndCurrencyMigration extends DataMigration { @Override public void migrate(Connection connection, String tablePrefix) throws SQLException { try (Statement statement = connection.createStatement()) { - statement.execute("ALTER TABLE " + tablePrefix + "auctions ADD currency TEXT NOT NULL DEFAULT 'Vault/Vault' "); + statement.execute("ALTER TABLE " + tablePrefix + "auctions ADD currency TEXT NOT NULL DEFAULT ('Vault/Vault') "); statement.execute("ALTER TABLE " + tablePrefix + "auctions ADD currency_item TEXT NULL"); statement.execute("ALTER TABLE " + tablePrefix + "auctions ADD listed_server TEXT NULL"); } diff --git a/src/main/java/ca/tweetzy/auctionhouse/database/migrations/_27_FixMigration25to26Migration.java b/src/main/java/ca/tweetzy/auctionhouse/database/migrations/_27_FixMigration25to26Migration.java index af89bd9..4031582 100644 --- a/src/main/java/ca/tweetzy/auctionhouse/database/migrations/_27_FixMigration25to26Migration.java +++ b/src/main/java/ca/tweetzy/auctionhouse/database/migrations/_27_FixMigration25to26Migration.java @@ -16,7 +16,7 @@ public final class _27_FixMigration25to26Migration extends DataMigration { public void migrate(Connection connection, String tablePrefix) throws SQLException { try (Statement statement = connection.createStatement()) { statement.execute("ALTER TABLE " + tablePrefix + "auctions DROP COLUMN currency"); - statement.execute("ALTER TABLE " + tablePrefix + "auctions ADD currency VARCHAR(70) DEFAULT 'Vault/Vault'"); + statement.execute("ALTER TABLE " + tablePrefix + "auctions ADD currency VARCHAR(70) DEFAULT ('Vault/Vault')"); statement.execute("DROP TABLE " + tablePrefix + "bids;"); statement.execute("CREATE TABLE " + tablePrefix + "bids (" + @@ -24,7 +24,7 @@ public final class _27_FixMigration25to26Migration extends DataMigration { "listing_id VARCHAR(36) NOT NULL, " + "bidder_uuid VARCHAR(36) NOT NULL, " + "bidder_name VARCHAR(16) NOT NULL, " + - "currency VARCHAR(70) NOT NULL DEFAULT 'Vault/Vault'," + + "currency VARCHAR(70) NOT NULL DEFAULT ('Vault/Vault)'," + "currency_item TEXT NULL," + "amount DOUBLE NOT NULL, " + "world VARCHAR(126) NOT NULL, " + diff --git a/src/main/java/ca/tweetzy/auctionhouse/database/migrations/_29_PaymentMultiCurrencyMigration.java b/src/main/java/ca/tweetzy/auctionhouse/database/migrations/_29_PaymentMultiCurrencyMigration.java index 426b3ae..f42702b 100644 --- a/src/main/java/ca/tweetzy/auctionhouse/database/migrations/_29_PaymentMultiCurrencyMigration.java +++ b/src/main/java/ca/tweetzy/auctionhouse/database/migrations/_29_PaymentMultiCurrencyMigration.java @@ -15,7 +15,7 @@ public final class _29_PaymentMultiCurrencyMigration extends DataMigration { @Override public void migrate(Connection connection, String tablePrefix) throws SQLException { try (Statement statement = connection.createStatement()) { - statement.execute("ALTER TABLE " + tablePrefix + "payments ADD currency TEXT NOT NULL DEFAULT 'Vault/Vault' "); + statement.execute("ALTER TABLE " + tablePrefix + "payments ADD currency VARCHAR(70) NOT NULL DEFAULT ('Vault/Vault') "); statement.execute("ALTER TABLE " + tablePrefix + "payments ADD currency_item TEXT NULL"); } }