diff options
author | Marvin W <git@larma.de> | 2019-12-15 19:03:02 +0100 |
---|---|---|
committer | Marvin W <git@larma.de> | 2019-12-17 23:52:29 +0100 |
commit | a4a795af333d6bcf378e11df456a858af2fa4603 (patch) | |
tree | 4f0014f8b9b7876ffd35960beffe4d59fe41f53a /qlite/src/table.vala | |
parent | 97647f9b5251dfc7a5a84d7432a1914fa7ec66b9 (diff) | |
download | dino-a4a795af333d6bcf378e11df456a858af2fa4603.tar.gz dino-a4a795af333d6bcf378e11df456a858af2fa4603.zip |
Use transaction for database migration
Diffstat (limited to 'qlite/src/table.vala')
-rw-r--r-- | qlite/src/table.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qlite/src/table.vala b/qlite/src/table.vala index 6c6ef9de..a5a57c49 100644 --- a/qlite/src/table.vala +++ b/qlite/src/table.vala @@ -48,7 +48,7 @@ public class Table { try { db.exec(@"INSERT INTO _fts_$name(_fts_$name) VALUES('rebuild');"); } catch (Error e) { - error(@"Qlite Error: Rebuilding FTS index: $(e.message)"); + critical(@"Qlite Error: Rebuilding FTS index: $(e.message)"); } } @@ -171,7 +171,7 @@ public class Table { try { db.exec(@"ALTER TABLE $name ADD COLUMN $(c.to_column_definition())"); } catch (Error e) { - error(@"Qlite Error: Add columns for version: $(e.message)"); + critical(@"Qlite Error: Add columns for version: $(e.message)"); } } } |