fix table migration

This commit is contained in:
Marco 2024-04-04 18:40:16 +02:00
parent d673225649
commit 6593ec0fc3

View File

@ -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");
}
},
);