remove unused prints
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user