2023-09-10 15:17:43 +08:00
|
|
|
"""add_app_config_retriever_resource
|
|
|
|
|
|
|
|
Revision ID: 77e83833755c
|
|
|
|
Revises: 6dcb43972bdc
|
|
|
|
Create Date: 2023-09-06 17:26:40.311927
|
|
|
|
|
|
|
|
"""
|
|
|
|
import sqlalchemy as sa
|
2024-01-12 12:34:01 +08:00
|
|
|
from alembic import op
|
2023-09-10 15:17:43 +08:00
|
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
|
|
revision = '77e83833755c'
|
|
|
|
down_revision = '6dcb43972bdc'
|
|
|
|
branch_labels = None
|
|
|
|
depends_on = None
|
|
|
|
|
|
|
|
|
|
|
|
def upgrade():
|
|
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
|
|
with op.batch_alter_table('app_model_configs', schema=None) as batch_op:
|
|
|
|
batch_op.add_column(sa.Column('retriever_resource', sa.Text(), nullable=True))
|
|
|
|
|
|
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
|
|
|
|
|
|
def downgrade():
|
|
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
|
|
with op.batch_alter_table('app_model_configs', schema=None) as batch_op:
|
|
|
|
batch_op.drop_column('retriever_resource')
|
|
|
|
|
|
|
|
# ### end Alembic commands ###
|