aboutsummaryrefslogtreecommitdiffstats
path: root/famille.py
diff options
context:
space:
mode:
Diffstat (limited to 'famille.py')
-rw-r--r--famille.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/famille.py b/famille.py
index 9d9894d..5232e47 100644
--- a/famille.py
+++ b/famille.py
@@ -84,6 +84,7 @@ def connect_db():
conn = sqlite3.connect(app.config['DATABASE'],
detect_types=sqlite3.PARSE_DECLTYPES)
conn.row_factory = sqlite3.Row
+ conn.execute("PRAGMA foreign_keys=ON")
return conn