fix table migration
This commit is contained in:
parent
d673225649
commit
6593ec0fc3
@ -32,7 +32,7 @@ class AppDatabase extends _$AppDatabase {
|
||||
},
|
||||
onUpgrade: (Migrator m, int from, int to) async {
|
||||
if (from < 2) {
|
||||
m.renameTable(persistentNote, "persistent_note");
|
||||
await m.renameTable(persistentNote, "note_table");
|
||||
}
|
||||
},
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user