mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
server: handle empty flags in migration
This commit is contained in:
@ -27,7 +27,7 @@ def upgrade():
|
||||
sa.Column('oldflags', sa.PickleType(), nullable=True),
|
||||
)
|
||||
for row in conn.execute(posts.select()):
|
||||
newflag = ','.join(row.oldflags)
|
||||
newflag = ','.join(row.oldflags) if row.oldflags else ''
|
||||
conn.execute(
|
||||
# pylint: disable=no-value-for-parameter
|
||||
posts.update().where(
|
||||
|
Reference in New Issue
Block a user