mirror of
https://github.com/ankitects/anki.git
synced 2025-11-12 07:37:11 -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
|
||||
db.executescript("""
|
||||
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;""")
|
||||
# fields missing a field model?
|
||||
if db.list("""
|
||||
|
|
|
|||
Loading…
Reference in a new issue