[add] migration script

This commit is contained in:
Mark
2026-01-07 14:21:04 +08:00
parent 55e97e5588
commit 957f8f83ff

View File

@@ -0,0 +1,30 @@
"""202601071400
Revision ID: 8372101eda28
Revises: 6064f41faac6
Create Date: 2026-01-07 14:00:14.700994
"""
from typing import Sequence, Union
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision: str = '8372101eda28'
down_revision: Union[str, None] = '6064f41faac6'
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None
def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('data_config', 'llm')
# ### end Alembic commands ###
def downgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('data_config', sa.Column('llm', sa.VARCHAR(), autoincrement=False, nullable=True, comment='LLM模型配置ID'))
# ### end Alembic commands ###