Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
fix(migrations): fix the enum scope downgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
frgfm committed Mar 30, 2024
1 parent 18b335d commit 9f04edf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/migrations/versions/2024_03_30_0143-66a64868bce4_.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ###

0 comments on commit 9f04edf

Please sign in to comment.