diff --git a/migration.py b/migration.py index abe9eba..c425405 100644 --- a/migration.py +++ b/migration.py @@ -5,7 +5,9 @@ import sqlite3 def connect_db(): - return sqlite3.connect('database/database.sqlite') + conn = sqlite3.connect('database/database.sqlite') + conn.execute("PRAGMA foreign_keys = 1") + return conn def create_user_table():