"""add file_version to annotation_results Revision ID: 20250205_0001 Revises: Create Date: 2025-02-05 00:00:00.000000 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = "20250205_0001" down_revision = None branch_labels = None depends_on = None def upgrade() -> None: op.add_column( "t_dm_annotation_results", sa.Column( "file_version", sa.BigInteger(), nullable=True, comment="标注时的文件版本号" ), ) def downgrade() -> None: op.drop_column("t_dm_annotation_results", "file_version")