Enable foreign key constraint, don't poll it
This commit is contained in:
parent
c6572bd6f4
commit
3b232d9959
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ class Database(object):
|
|||
self.location)
|
||||
self.database = sqlite3.connect(self.full_location,
|
||||
check_same_thread=False, isolation_level=None)
|
||||
self.database.execute("PRAGMA foreign_keys")
|
||||
self.database.execute("PRAGMA foreign_keys = ON")
|
||||
self.cursors = {}
|
||||
|
||||
self.make_servers_table()
|
||||
|
|
Loading…
Reference in a new issue