foreign key support enabled

This commit is contained in:
Gourav Kumar 2024-06-21 10:08:26 +05:30
parent d044943309
commit 6e9a8b5b97

View File

@ -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():