"""empty message Revision ID: bfa0b0c7c62f Revises: f02e03313631 Create Date: 2025-10-30 23:31:12.508052 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import sqlite # revision identifiers, used by Alembic. revision = 'bfa0b0c7c62f' down_revision = 'f02e03313631' branch_labels = None depends_on = None def upgrade(): # ### commands auto generated by Alembic - please adjust! ### with op.batch_alter_table('sys_file', schema=None) as batch_op: batch_op.add_column(sa.Column('storage_info', sa.JSON(), nullable=True, comment='存储信息(bucket/region/endpoint/meta等)')) batch_op.drop_column('storage_meta') batch_op.drop_column('storage_bucket') batch_op.drop_column('storage_region') batch_op.drop_column('storage_endpoint') # ### end Alembic commands ### def downgrade(): # ### commands auto generated by Alembic - please adjust! ### with op.batch_alter_table('sys_file', schema=None) as batch_op: batch_op.add_column(sa.Column('storage_endpoint', sa.VARCHAR(length=255), nullable=True)) batch_op.add_column(sa.Column('storage_region', sa.VARCHAR(length=64), nullable=True)) batch_op.add_column(sa.Column('storage_bucket', sa.VARCHAR(length=128), nullable=True)) batch_op.add_column(sa.Column('storage_meta', sqlite.JSON(), nullable=True)) batch_op.drop_column('storage_info') # ### end Alembic commands ###