From 56920ae7c585bebea5a6959ede87d084cb4e9824 Mon Sep 17 00:00:00 2001 From: jlightner Date: Sat, 4 Apr 2026 07:22:41 +0000 Subject: [PATCH] fix: remove leftover op.add_column/create_index calls from migration 020 --- alembic/versions/020_add_chapter_status_and_sort_order.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/alembic/versions/020_add_chapter_status_and_sort_order.py b/alembic/versions/020_add_chapter_status_and_sort_order.py index 7150e75..c29f93c 100644 --- a/alembic/versions/020_add_chapter_status_and_sort_order.py +++ b/alembic/versions/020_add_chapter_status_and_sort_order.py @@ -20,11 +20,6 @@ def upgrade() -> None: op.execute("ALTER TABLE key_moments ADD COLUMN IF NOT EXISTS chapter_status chapter_status NOT NULL DEFAULT 'draft'") op.execute("ALTER TABLE key_moments ADD COLUMN IF NOT EXISTS sort_order INTEGER NOT NULL DEFAULT 0") op.execute("CREATE INDEX IF NOT EXISTS ix_key_moments_chapter_status ON key_moments (chapter_status)") - op.add_column( - "key_moments", - sa.Column("sort_order", sa.Integer, nullable=False, server_default="0"), - ) - op.create_index("ix_key_moments_chapter_status", "key_moments", ["chapter_status"]) def downgrade() -> None: