ebe33392ca
Preserve document revisions and evidence, harden indexing and export behavior, add explicit material selection and direct-folder import, validate model JSON schemas with safe error messages, and retain student selection while loading scoring data.
22 lines
508 B
Python
22 lines
508 B
Python
"""Align new document defaults; existing documents stay stale until rebuilt.
|
|
|
|
Revision ID: 0007
|
|
Revises: 0006
|
|
"""
|
|
from alembic import op
|
|
|
|
revision = "0007"
|
|
down_revision = "0006"
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
with op.batch_alter_table("knowledge_documents") as batch:
|
|
batch.alter_column("index_version", server_default="4")
|
|
|
|
|
|
def downgrade():
|
|
with op.batch_alter_table("knowledge_documents") as batch:
|
|
batch.alter_column("index_version", server_default="1")
|