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