Skip to content

Commit

Permalink
Add new index
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangreen committed Oct 29, 2024
1 parent 2955774 commit 19bd381
Showing 1 changed file with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
"""Add index ix_licensepools_collection_id_work_id
Revision ID: 3faa5bba3ddf
Revises: 1938277e993f
Create Date: 2024-10-29 15:29:56.588830+00:00
"""

from alembic import op

# revision identifiers, used by Alembic.
revision = "3faa5bba3ddf"
down_revision = "1938277e993f"
branch_labels = None
depends_on = None


def upgrade() -> None:
op.create_index(
"ix_licensepools_collection_id_work_id",
"licensepools",
["collection_id", "work_id"],
unique=False,
)


def downgrade() -> None:
op.drop_index("ix_licensepools_collection_id_work_id", table_name="licensepools")

0 comments on commit 19bd381

Please sign in to comment.