mirror of https://github.com/AMT-Cheif/drift.git
Remove foreign keys pragma from example
This commit is contained in:
parent
af58b99db1
commit
373d7c6478
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue