use intermediate table for user matching, fix clear_smart_list_cache

This commit is contained in:
j 2016-01-06 09:54:23 +05:30
commit 8fc084b852
4 changed files with 16 additions and 11 deletions

View file

@ -243,6 +243,8 @@ def upgrade_db(old, new=None):
if 'id' in m.data:
del m.data['id']
m.save()
if old <= '20160106-495-d1b9e96':
run_sql('CREATE INDEX ix_useritem_user ON useritem ("user_id")')
def create_default_lists(user_id=None):
with db.session():