fix: remove leftover op.add_column/create_index calls from migration 020
This commit is contained in:
parent
ed8bdedbc9
commit
56920ae7c5
1 changed files with 0 additions and 5 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue