[add] migration script
This commit is contained in:
30
api/migrations/versions/8372101eda28_202601071400.py
Normal file
30
api/migrations/versions/8372101eda28_202601071400.py
Normal 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 ###
|
||||||
Reference in New Issue
Block a user