diff --git a/warehouse/migrations/versions/12a43f12cc18_add_new_lifecycle_statuses.py b/warehouse/migrations/versions/12a43f12cc18_add_new_lifecycle_statuses.py index 8429d2d6f504..8b47a70e2916 100644 --- a/warehouse/migrations/versions/12a43f12cc18_add_new_lifecycle_statuses.py +++ b/warehouse/migrations/versions/12a43f12cc18_add_new_lifecycle_statuses.py @@ -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():