Skip to content

Commit

Permalink
fixup migration: add to enum directly rather than using sync_enum (py…
Browse files Browse the repository at this point in the history
  • Loading branch information
ewdurbin authored Jan 16, 2025
1 parent 902251f commit 0c883bb
Showing 1 changed file with 1 addition and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,7 @@


def upgrade():
op.execute("SET statement_timeout = 60000")
op.execute("SET lock_timeout = 120000")

op.sync_enum_values(
"public",
"lifecyclestatus",
["quarantine-enter", "quarantine-exit", "archived"],
[
TableReference(
table_schema="public",
table_name="projects",
column_name="lifecycle_status",
)
],
enum_values_to_rename=[],
)
op.execute("ALTER TYPE public.lifecyclestatus ADD VALUE IF NOT EXISTS 'archived'")


def downgrade():
Expand Down

0 comments on commit 0c883bb

Please sign in to comment.