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])
|
@UseMoor(tables: [Todos, Categories])
|
||||||
class Database extends _$Database {
|
class Database extends _$Database {
|
||||||
Database()
|
Database()
|
||||||
: super(
|
: super(FlutterQueryExecutor.inDatabaseFolder(
|
||||||
FlutterQueryExecutor.inDatabaseFolder(
|
path: 'db.sqlite', logStatements: true));
|
||||||
path: 'db.sqlite',
|
|
||||||
logStatements: true,
|
|
||||||
)..doWhenOpened((e) => e.runCustom('PRAGMA foreign_keys = ON')),
|
|
||||||
);
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get schemaVersion => 1;
|
int get schemaVersion => 1;
|
||||||
|
|
Loading…
Reference in New Issue