Commit 135dea3c authored by echel0n's avatar echel0n
Browse files

Fixed issue with v16 database migration using multiple where clauses

parent 9b97bf7f
......@@ -14,11 +14,11 @@ def upgrade(migrate_engine):
if scene_numbering is not None:
with migrate_engine.begin() as conn:
for row in migrate_engine.execute(scene_numbering.select()):
conn.execute(tv_episodes.update().where(
conn.execute(tv_episodes.update().where(and_(
tv_episodes.c.showid == row.indexer_id,
tv_episodes.c.season == row.season,
tv_episodes.c.episode == row.episode
).values(
)).values(
scene_season=row.scene_season,
scene_episode=row.scene_episode
))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment