mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-17 05:09:53 +01:00
Use HyperSQL-compatible syntax in migration.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user