Fix v3 index not created for new db

This commit is contained in:
Ming Ming 2022-12-06 21:31:55 +08:00
parent 5570fcf156
commit 28efab5e52

View file

@ -251,6 +251,7 @@ class SqliteDb extends _$SqliteDb {
"CREATE INDEX album_shares_album_index ON album_shares(album);"));
await _createIndexV2(m);
await _createIndexV3(m);
},
onUpgrade: (m, from, to) async {
_log.info("[onUpgrade] $from -> $to");