Use HyperSQL-compatible syntax in migration.

This commit is contained in:
akwizgran
2019-06-13 16:34:20 +01:00
parent 132e20a6ce
commit 3636aeba9a

View File

@@ -31,8 +31,7 @@ class Migration45_46 implements Migration<Connection> {
try {
s = txn.createStatement();
s.execute("ALTER TABLE messages"
+ " ADD COLUMN temporary BOOLEAN NOT NULL"
+ " DEFAULT (FALSE)");
+ " ADD COLUMN temporary BOOLEAN DEFAULT FALSE NOT NULL");
} catch (SQLException e) {
tryToClose(s, LOG, WARNING);
throw new DbException(e);