foreign key support enabled
This commit is contained in:
parent
d044943309
commit
6e9a8b5b97
@ -5,7 +5,9 @@ import sqlite3
|
|||||||
|
|
||||||
|
|
||||||
def connect_db():
|
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():
|
def create_user_table():
|
||||||
|
Loading…
Reference in New Issue
Block a user