Added constraints in DB
[cavote.git] / main.py
diff --git a/main.py b/main.py
index 3937dfb..7cd53f3 100755 (executable)
--- a/main.py
+++ b/main.py
@@ -33,6 +33,7 @@ def connect_db():
 @app.before_request
 def before_request():
     g.db = connect_db()
+    g.db.execute("PRAGMA foreign_keys = ON")
 
 @app.teardown_request
 def teardown_request(exception):