"""创建第二阶段知识文档表。"""

from alembic import op

from zbt.infrastructure.mysql.core_models import CoreBase

revision = "core_0005"
down_revision = "core_0004"
branch_labels = None
depends_on = None


def upgrade() -> None:
    CoreBase.metadata.tables["knowledge_documents"].create(bind=op.get_bind())


def downgrade() -> None:
    CoreBase.metadata.tables["knowledge_documents"].drop(bind=op.get_bind())

