"""创建知识检索测试记录表。"""

from alembic import op

from zbt.infrastructure.mysql.core_models import CoreBase

revision = "core_0007"
down_revision = "core_0006"
branch_labels = None
depends_on = None


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


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