summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--apioforum/db.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/apioforum/db.py b/apioforum/db.py
index 136b7c6..2afba74 100644
--- a/apioforum/db.py
+++ b/apioforum/db.py
@@ -108,6 +108,7 @@ INSERT INTO threads_new (id,title,creator,created,updated,forum)
DROP TABLE threads;
ALTER TABLE threads_new RENAME TO threads;
COMMIT;
+PRAGMA foreign_keys = on;
""",
]