also remove id from Metadata table
This commit is contained in:
parent
de7a555ce1
commit
aa34f96f48
1 changed files with 4 additions and 0 deletions
|
@ -239,6 +239,10 @@ def upgrade_db(old, new=None):
|
|||
if 'id' in i.meta:
|
||||
del i.meta['id']
|
||||
i.save()
|
||||
for m in item.models.Metadata.query:
|
||||
if 'id' in m.data:
|
||||
del m.data['id']
|
||||
m.save()
|
||||
|
||||
def create_default_lists(user_id=None):
|
||||
with db.session():
|
||||
|
|
Loading…
Reference in a new issue