This commit is contained in:
amb
2026-09-01 13:00:36 +08:00
parent 1d8621717a
commit dfd38c99a0
35 changed files with 3141 additions and 21 deletions
@@ -0,0 +1,29 @@
"""add_kb_status
Revision ID: 4fcdb390ae18
Revises: 5c27c8e31fde
Create Date: 2026-09-01 12:41:55.919052
"""
from typing import Sequence, Union
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision: str = '4fcdb390ae18'
down_revision: Union[str, None] = '5c27c8e31fde'
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.add_column('knowledge_bases', sa.Column('status', sa.String(length=16), nullable=False, comment='状态 (active/deleted)'))
# ### end Alembic commands ###
def downgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('knowledge_bases', 'status')
# ### end Alembic commands ###