fix crash when ix_fields_factId was missing

This commit is contained in:
Damien Elmes 2013-02-02 22:58:11 +09:00
parent 60b5b77d65
commit 24bf9a023b

View file

@ -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("""