fix: remove leftover op.add_column/create_index calls from migration 020

This commit is contained in:
jlightner 2026-04-04 07:22:41 +00:00
parent ed8bdedbc9
commit 56920ae7c5

View file

@ -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: