Remove foreign keys pragma from example

This commit is contained in:
Simon Binder 2019-06-19 21:32:27 +02:00
parent af58b99db1
commit 373d7c6478
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
1 changed files with 2 additions and 6 deletions

View File

@ -41,12 +41,8 @@ class EntryWithCategory {
@UseMoor(tables: [Todos, Categories])
class Database extends _$Database {
Database()
: super(
FlutterQueryExecutor.inDatabaseFolder(
path: 'db.sqlite',
logStatements: true,
)..doWhenOpened((e) => e.runCustom('PRAGMA foreign_keys = ON')),
);
: super(FlutterQueryExecutor.inDatabaseFolder(
path: 'db.sqlite', logStatements: true));
@override
int get schemaVersion => 1;