mirror of
https://gitlab.com/jrmiller82/pathfinder-2-sqlite.git
synced 2026-11-10 21:29:44 -05:00
Added staves.sql
Need to add the staves.sql data after the spells are added otherwise the foreign key constraint will fail
This commit is contained in:
1 parent
27c6bf673d
commit
3704539c00
1 file changed
+4
-1
@@ -26,6 +26,7 @@ sqlite3 pf2.db < schema/gear.sql
|
|||||||
sqlite3 pf2.db < schema/weapons.sql
|
sqlite3 pf2.db < schema/weapons.sql
|
||||||
sqlite3 pf2.db < schema/ammunition.sql
|
sqlite3 pf2.db < schema/ammunition.sql
|
||||||
sqlite3 pf2.db < schema/monsters.sql
|
sqlite3 pf2.db < schema/monsters.sql
|
||||||
|
sqlite3 pf2.db < schema/staves.sql
|
||||||
echo 'loading data'
|
echo 'loading data'
|
||||||
sqlite3 pf2.db < data/sources.sql
|
sqlite3 pf2.db < data/sources.sql
|
||||||
sqlite3 pf2.db < data/alignments.sql
|
sqlite3 pf2.db < data/alignments.sql
|
||||||
@@ -55,8 +56,10 @@ sqlite3 pf2.db < data/ammunition.sql
|
|||||||
sqlite3 pf2.db < data/monsters.sql
|
sqlite3 pf2.db < data/monsters.sql
|
||||||
# Comment out the following three lines if you don't want to generate the spell data.
|
# Comment out the following three lines if you don't want to generate the spell data.
|
||||||
cd data/third_party_json
|
cd data/third_party_json
|
||||||
python3 spells.py
|
python spells.py
|
||||||
cd ../..
|
cd ../..
|
||||||
|
# Staves need to be added after spells due to Foreign Key constraint
|
||||||
|
sqlite3 pf2.db < data/staves.sql
|
||||||
|
|
||||||
# TODO Eventually we will stop relying on the spells.py script and I will have
|
# TODO Eventually we will stop relying on the spells.py script and I will have
|
||||||
# the actual .sql files for the spell data; I am waiting to see if the
|
# the actual .sql files for the spell data; I am waiting to see if the
|
||||||
|
|||||||
Reference in new issue
Block a user