chore(migrations): set default values for graph and features in workflows

This commit is contained in:
-LAN- 2024-11-01 15:31:08 +08:00
parent 3002c9d8d7
commit 0cc3839679

View File

@ -30,6 +30,8 @@ def upgrade():
nullable=False)
op.execute("UPDATE workflows SET updated_at = created_at WHERE updated_at IS NULL")
op.execute("UPDATE workflows SET graph = '' WHERE graph IS NULL")
op.execute("UPDATE workflows SET features = '' WHERE features IS NULL")
with op.batch_alter_table('workflows', schema=None) as batch_op:
batch_op.alter_column('graph',