From 582065bf3d517725155b5f6b3423924c90d462d9 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Fri, 26 Jul 2019 11:05:35 +0200 Subject: [PATCH] [Store] Fix debug --- lib/src/Store.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/src/Store.dart b/lib/src/Store.dart index 64d1a49..b5fc341 100644 --- a/lib/src/Store.dart +++ b/lib/src/Store.dart @@ -55,12 +55,13 @@ class Store { _init() async { var databasePath = await getDatabasesPath(); String path = p.join(databasePath, "FluffyMatrix.db"); - _db = await openDatabase(path, version: 10, + _db = await openDatabase(path, version: 11, onCreate: (Database db, int version) async { await createTables(db); }, onUpgrade: (Database db, int oldVersion, int newVersion) async { if (client.debug) - ("[Store] Migrate databse from version $oldVersion to $newVersion"); + print( + "[Store] Migrate databse from version $oldVersion to $newVersion"); if (oldVersion != newVersion) { await db.execute("DROP TABLE IF EXISTS Rooms"); await db.execute("DROP TABLE IF EXISTS Participants");