|
|
@ -185,6 +185,14 @@ class DBEditor(QMainWindow): |
|
|
REFERENCES exclusive_encounter_groups (id) |
|
|
REFERENCES exclusive_encounter_groups (id) |
|
|
''') |
|
|
''') |
|
|
|
|
|
|
|
|
|
|
|
if 'starter' not in columns: |
|
|
|
|
|
# If the column doesn't exist, add it |
|
|
|
|
|
cursor.execute(''' |
|
|
|
|
|
ALTER TABLE encounters |
|
|
|
|
|
ADD COLUMN starter BOOLEAN |
|
|
|
|
|
''') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def load_and_apply_patches(self): |
|
|
def load_and_apply_patches(self): |
|
|
try: |
|
|
try: |
|
|
with open('patches.json', 'r') as f: |
|
|
with open('patches.json', 'r') as f: |
|
|
|