mirror of
https://github.com/johrpan/musicus_mobile.git
synced 2025-10-26 10:47:25 +01:00
client: Remove pragma to defer foreign keys
This commit is contained in:
parent
330fbb9b4b
commit
adeb975890
1 changed files with 1 additions and 2 deletions
|
|
@ -31,8 +31,7 @@ class MusicusClientDatabase extends _$MusicusClientDatabase {
|
||||||
@override
|
@override
|
||||||
MigrationStrategy get migration => MigrationStrategy(
|
MigrationStrategy get migration => MigrationStrategy(
|
||||||
beforeOpen: (details) async {
|
beforeOpen: (details) async {
|
||||||
await customStatement(
|
await customStatement('PRAGMA foreign_keys = ON;');
|
||||||
'PRAGMA foreign_keys = ON; PRAGMA defer_foreign_keys = ON;');
|
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue