dont store book id in metadata table

This commit is contained in:
j 2016-01-03 23:06:20 +05:30
commit b67a1d354b
2 changed files with 13 additions and 0 deletions

View file

@ -232,6 +232,13 @@ def upgrade_db(old, new=None):
for i in item.models.Item.query:
for f in i.files.all():
f.move()
if old <= '20160103-423-05ca6c9':
with db.session():
import item.models
for i in item.models.Item.query:
if 'id' in i.meta:
del i.meta['id']
i.save()
def create_default_lists(user_id=None):
with db.session():