mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-02 06:46:22 +01:00
Improve custom sql statements
This commit is contained in:
parent
c544070236
commit
2df27502f1
1 changed files with 2 additions and 2 deletions
|
@ -174,7 +174,7 @@ class SqliteDb extends _$SqliteDb {
|
|||
@override
|
||||
get migration => MigrationStrategy(
|
||||
onCreate: (m) async {
|
||||
await customStatement("PRAGMA journal_mode=WAL");
|
||||
await customStatement("PRAGMA journal_mode=WAL;");
|
||||
await m.createAll();
|
||||
|
||||
await m.createIndex(Index("files_server_index",
|
||||
|
@ -200,7 +200,7 @@ class SqliteDb extends _$SqliteDb {
|
|||
"CREATE INDEX album_shares_album_index ON album_shares(album);"));
|
||||
},
|
||||
beforeOpen: (details) async {
|
||||
await customStatement("PRAGMA foreign_keys = ON");
|
||||
await customStatement("PRAGMA foreign_keys = ON;");
|
||||
},
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue