mirror of
https://gitlab.com/jrmiller82/pathfinder-2-sqlite.git
synced 2026-10-12 22:29:44 -04:00
turn on pragma foreign_keys in spells.py
This commit is contained in:
1 parent
13754f2808
commit
696f9afd70
1 file changed
+2
@@ -34,10 +34,12 @@ def main():
|
|||||||
pragma2 = "PRAGMA count_changes=OFF;"
|
pragma2 = "PRAGMA count_changes=OFF;"
|
||||||
pragma3 = "PRAGMA journal_mode=MEMORY;"
|
pragma3 = "PRAGMA journal_mode=MEMORY;"
|
||||||
pragma4 = "PRAGMA temp_store=MEMORY;"
|
pragma4 = "PRAGMA temp_store=MEMORY;"
|
||||||
|
pragma5 = "PRAGMA foreign_keys=ON;"
|
||||||
conn.execute(pragma1)
|
conn.execute(pragma1)
|
||||||
conn.execute(pragma2)
|
conn.execute(pragma2)
|
||||||
conn.execute(pragma3)
|
conn.execute(pragma3)
|
||||||
conn.execute(pragma4)
|
conn.execute(pragma4)
|
||||||
|
conn.execute(pragma5)
|
||||||
|
|
||||||
# load in ids for traits from traits table so we only call this once
|
# load in ids for traits from traits table so we only call this once
|
||||||
# instead of every spell
|
# instead of every spell
|
||||||
|
|||||||
Reference in new issue
Block a user