From 9f04edf31835719c0e6a9946dae1ad609fd372ed Mon Sep 17 00:00:00 2001 From: F-G Fernandez <26927750+frgfm@users.noreply.github.com> Date: Sat, 30 Mar 2024 03:08:26 +0100 Subject: [PATCH] fix(migrations): fix the enum scope downgrade --- .github/workflows/tests.yml | 1 - src/migrations/versions/2024_03_30_0143-66a64868bce4_.py | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 01cc6c2..d8f158f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -63,7 +63,6 @@ jobs: docker compose -f docker-compose.dev.yml exec -T backend alembic current docker compose -f docker-compose.dev.yml exec -T backend alembic history --verbose docker compose -f docker-compose.dev.yml exec -T backend alembic stamp head - docker compose -f docker-compose.dev.yml exec -T backend alembic history --verbose docker compose -f docker-compose.dev.yml exec -T backend alembic downgrade -1 docker compose -f docker-compose.dev.yml exec -T backend alembic upgrade +1 diff --git a/src/migrations/versions/2024_03_30_0143-66a64868bce4_.py b/src/migrations/versions/2024_03_30_0143-66a64868bce4_.py index 783017b..5127d3f 100755 --- a/src/migrations/versions/2024_03_30_0143-66a64868bce4_.py +++ b/src/migrations/versions/2024_03_30_0143-66a64868bce4_.py @@ -57,6 +57,7 @@ def downgrade() -> None: # ### commands auto generated by Alembic - please adjust! ### op.drop_table("guideline") op.drop_table("user") + sa.Enum(name="userscope").drop(op.get_bind(), checkfirst=False) op.drop_index(op.f("ix_repository_provider_repo_id"), table_name="repository") op.drop_table("repository") # ### end Alembic commands ###