Skip to content

Commit

Permalink
Migration to revert the creation of annotation.pk
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospri committed Sep 19, 2023
1 parent 4f205f6 commit b135ef7
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions h/migrations/versions/77bc5b4f2205_revert_annotation_pk.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
"""Revert creation of annotation.pk."""
from alembic import op
from sqlalchemy.schema import CreateSequence, DropSequence, Sequence

revision = "77bc5b4f2205"
down_revision = "5d1abac3c1a1"


def upgrade():
op.execute(DropSequence(Sequence("annotation_id_seq")))
op.drop_constraint(op.f("uq__annotation__pk"), "annotation", type_="unique")
op.drop_column("annotation", "pk")


def downgrade():
"""No downgrade, check version f064c2b2e04a."""
pass

0 comments on commit b135ef7

Please sign in to comment.