Fix error opening database

The schemaVersion has to be at least one.
This commit is contained in:
Elias Projahn 2019-12-04 20:48:03 +01:00
parent 63fd75c0a4
commit ef4b81ce9b

View file

@ -17,7 +17,7 @@ class Database extends _$Database {
: super(FlutterQueryExecutor.inDatabaseFolder(path: fileName));
@override
int get schemaVersion => 0;
int get schemaVersion => 1;
Future<void> updatePerson(Person person) async {
await into(persons).insert(person);