Clear sound value when importing database

The file will no longer exist.
This commit is contained in:
Brandon Presley 2023-11-28 14:54:36 +13:00
parent e0302e63e2
commit a383ebfe34
1 changed files with 3 additions and 0 deletions

View File

@ -98,6 +98,9 @@ class _SettingsPageState extends State<_SettingsPage> {
// ignore: invalid_use_of_protected_member, invalid_use_of_visible_for_testing_member
final migrator = db.createMigrator();
await migrator.createAll();
await db.update(db.settings).write(
const SettingsCompanion(
sound: Value(null)));
print('Migrated.');
},
child: const Text("Import")));