remove unused prints

This commit is contained in:
Happi (哈比)
2026-03-06 19:02:09 +08:00
parent 119b376720
commit 074d90b15e

View File

@@ -63,19 +63,14 @@ class AppDatabase extends _$AppDatabase {
onCreate: (m) async { onCreate: (m) async {
await m.createAll(); await m.createAll();
}, },
beforeOpen: (details) async {
print("wtf");
},
onUpgrade: (m, from, to) async { onUpgrade: (m, from, to) async {
// Create any new tables that don't exist yet // Create any new tables that don't exist yet
print("upgrading");
for (final table in allTables) { for (final table in allTables) {
final existingTables = await m.database final existingTables = await m.database
.customSelect("SELECT name FROM sqlite_master WHERE type='table' AND name='${table.actualTableName}'") .customSelect("SELECT name FROM sqlite_master WHERE type='table' AND name='${table.actualTableName}'")
.get(); .get();
if (existingTables.isEmpty) { if (existingTables.isEmpty) {
print("creating table");
await m.createTable(table); await m.createTable(table);
continue; continue;
} }