This commit is contained in:
Gwendal Roué committed 2019-07-29 09:11:47 +02:00
1 parent 82c8958c44
commit bb0c11f7d5
1 file changed
+1
+1
View File
@@ -76,6 +76,7 @@ struct Migration {
return .commit
}
// TODO: we should restore foreign_keys in case of error as well
// > 12. If foreign keys constraints were originally enabled, reenable them now.
try db.execute(sql: "PRAGMA foreign_keys = ON")
}