From 696f9afd704cbbfb261535c3a9ece427410bce78 Mon Sep 17 00:00:00 2001 From: James Miller Date: Wed, 14 Aug 2019 23:01:30 -0500 Subject: [PATCH] turn on pragma foreign_keys in spells.py --- data/third_party_json/spells.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/data/third_party_json/spells.py b/data/third_party_json/spells.py index 957a890..90e33f9 100644 --- a/data/third_party_json/spells.py +++ b/data/third_party_json/spells.py @@ -34,10 +34,12 @@ def main(): pragma2 = "PRAGMA count_changes=OFF;" pragma3 = "PRAGMA journal_mode=MEMORY;" pragma4 = "PRAGMA temp_store=MEMORY;" + pragma5 = "PRAGMA foreign_keys=ON;" conn.execute(pragma1) conn.execute(pragma2) conn.execute(pragma3) conn.execute(pragma4) + conn.execute(pragma5) # load in ids for traits from traits table so we only call this once # instead of every spell