Skip to content

Commit

Permalink
Merge pull request #813 from MolSSI/ds_ux
Browse files Browse the repository at this point in the history
Fix unique index on base dataset
  • Loading branch information
bennybp authored Apr 8, 2024
2 parents f0cd183 + 9da7d33 commit 3d38ffd
Showing 1 changed file with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
"""Fix unique index on dataset table
Revision ID: 34d57d259c11
Revises: 6b24c66979ab
Create Date: 2024-04-07 09:36:05.692066
"""
from alembic import op

# revision identifiers, used by Alembic.
revision = "34d57d259c11"
down_revision = "6b24c66979ab"
branch_labels = None
depends_on = None


def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.execute("ALTER TABLE base_dataset DROP CONSTRAINT IF EXISTS ux_base_dataset_dataset_type_lname")
op.create_unique_constraint("ux_base_dataset_dataset_type_lname", "base_dataset", ["dataset_type", "lname"])
# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
pass
# ### end Alembic commands ###

0 comments on commit 3d38ffd

Please sign in to comment.