From 3b232d9959117e955e5d7c7e2ce3be1d77c9c4c1 Mon Sep 17 00:00:00 2001 From: Evelyn Date: Wed, 6 Dec 2017 10:43:06 +0000 Subject: [PATCH] Enable foreign key constraint, don't poll it --- Database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Database.py b/Database.py index 3c5ecccb..d1cc66ce 100644 --- a/Database.py +++ b/Database.py @@ -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()