mirror of
https://github.com/ankitects/anki.git
synced 2025-11-12 15:47:12 -05:00
fix crash when ix_fields_factId was missing
This commit is contained in:
parent
60b5b77d65
commit
24bf9a023b
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ class Upgrader(object):
|
||||||
# ensure we have indices for checks below
|
# ensure we have indices for checks below
|
||||||
db.executescript("""
|
db.executescript("""
|
||||||
create index if not exists ix_cards_factId on cards (factId);
|
create index if not exists ix_cards_factId on cards (factId);
|
||||||
create index if not exists ix_fields_factId on fieldModels (factId);
|
create index if not exists ix_fields_factId on fields (factId);
|
||||||
analyze;""")
|
analyze;""")
|
||||||
# fields missing a field model?
|
# fields missing a field model?
|
||||||
if db.list("""
|
if db.list("""
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue