Enable foreign key constraint, don't poll it

This commit is contained in:
Evelyn 2017-12-06 10:43:06 +00:00
parent c6572bd6f4
commit 3b232d9959

View file

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