Skip to content

Commit

Permalink
Revert migration adding annotation.user_id
Browse files Browse the repository at this point in the history
Investigating performance problems in H's DB. Trying to rule this table
changes as the direct cause.
  • Loading branch information
marcospri committed Sep 20, 2023
1 parent 5f1394b commit 28d4088
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions h/migrations/versions/6df1c8c3e423_revert_annotation_user_id.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
"""Revert annotation.user_id."""
from alembic import op

revision = "6df1c8c3e423"
down_revision = "076ac6c7a8e0"


def upgrade():
op.drop_index("ix__annotation_user_id", table_name="annotation")
op.drop_constraint(
"fk__annotation__user_id__user", "annotation", type_="foreignkey"
)
op.drop_column("annotation", "user_id")


def downgrade():
"""No downgrade, see the upgrade for migration 8250dce465f2."""
pass

0 comments on commit 28d4088

Please sign in to comment.