refactor(migration/model): update column types for workflow schema (#10160)

This commit is contained in:
-LAN-
2024-11-01 16:10:55 +08:00
committed by GitHub
parent 9ac2bb30f4
commit bf048b8d7c
2 changed files with 4 additions and 5 deletions

View File

@@ -39,7 +39,6 @@ def upgrade():
nullable=False)
batch_op.alter_column('features',
existing_type=sa.TEXT(),
type_=sa.String(),
nullable=False)
batch_op.alter_column('updated_at',
existing_type=postgresql.TIMESTAMP(),
@@ -55,8 +54,7 @@ def downgrade():
existing_type=postgresql.TIMESTAMP(),
nullable=True)
batch_op.alter_column('features',
existing_type=sa.String(),
type_=sa.TEXT(),
existing_type=sa.TEXT(),
nullable=True)
batch_op.alter_column('graph',
existing_type=sa.TEXT(),