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 { try {
s = txn.createStatement(); s = txn.createStatement();
s.execute("ALTER TABLE messages" s.execute("ALTER TABLE messages"
+ " ADD COLUMN temporary BOOLEAN NOT NULL" + " ADD COLUMN temporary BOOLEAN DEFAULT FALSE NOT NULL");
+ " DEFAULT (FALSE)");
} catch (SQLException e) { } catch (SQLException e) {
tryToClose(s, LOG, WARNING); tryToClose(s, LOG, WARNING);
throw new DbException(e); throw new DbException(e);