indexes are created later now. no need to fail in postupdate
This commit is contained in:
parent
e9b6a51fff
commit
e8e2535913
1 changed files with 0 additions and 5 deletions
|
@ -342,9 +342,6 @@ def upgrade_db(old, new=None):
|
||||||
session.add(f)
|
session.add(f)
|
||||||
session.commit()
|
session.commit()
|
||||||
|
|
||||||
if old <= '20140527-120-3cb9819':
|
|
||||||
run_sql('CREATE INDEX ix_find_findvalue ON find (findvalue)')
|
|
||||||
|
|
||||||
if old <= '20151118-346-7e86e68':
|
if old <= '20151118-346-7e86e68':
|
||||||
old_key = os.path.join(settings.data_path, 'node.ssl.key')
|
old_key = os.path.join(settings.data_path, 'node.ssl.key')
|
||||||
if os.path.exists(old_key):
|
if os.path.exists(old_key):
|
||||||
|
@ -371,8 +368,6 @@ def upgrade_db(old, new=None):
|
||||||
if 'id' in i.meta:
|
if 'id' in i.meta:
|
||||||
del i.meta['id']
|
del i.meta['id']
|
||||||
i.save()
|
i.save()
|
||||||
if old <= '20160106-495-d1b9e96':
|
|
||||||
run_sql('CREATE INDEX ix_useritem_user ON useritem ("user_id")')
|
|
||||||
if old <= '20160106-497-c86ba8a':
|
if old <= '20160106-497-c86ba8a':
|
||||||
with db.session() as session:
|
with db.session() as session:
|
||||||
u = User.get(settings.USER_ID)
|
u = User.get(settings.USER_ID)
|
||||||
|
|
Loading…
Reference in a new issue