Commit e7384019 authored by echel0n's avatar echel0n
Browse files

Prevent null value when adding last_xem_refresh via alembic

parent 12e63166
......@@ -26,8 +26,9 @@ def upgrade():
with op.get_context().begin_transaction():
for row in conn.execute(
last_xem_refresh = row.last_refreshed or
conn.execute('UPDATE tv_shows SET last_xem_refresh = {} WHERE tv_shows.indexer_id = {}'
.format(row.last_refreshed, row.indexer_id))
.format(last_xem_refresh, row.indexer_id))
Supports Markdown
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