Enable WAL mode

This commit is contained in:
Ming Ming 2022-07-16 02:14:27 +08:00
parent c2d7cdb30a
commit 90d73ecc9c

View file

@ -170,6 +170,7 @@ class SqliteDb extends _$SqliteDb {
@override
get migration => MigrationStrategy(
onCreate: (m) async {
await customStatement("PRAGMA journal_mode=WAL");
await m.createAll();
await m.createIndex(Index("files_server_index",