Skip to content

Commit

Permalink
Merge branch 'master' of github.com:m-martinez/occams_datastore
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Martinez committed Jun 28, 2016
2 parents a878fa6 + a1c4915 commit cffbef0
Showing 1 changed file with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
"""Fix missing deffered choice constraint
Revision ID: 5eb8bce63d7e
Revises: 66de8d816999
Create Date: 2016-06-27 15:28:14.350166
"""

# revision identifiers, used by Alembic.
revision = '5eb8bce63d7e'
down_revision = '66de8d816999'
branch_labels = None


from alembic import op
import sqlalchemy as sa


def upgrade():
op.drop_constraint('uq_choice_order', 'choice')
op.create_unique_constraint(
'uq_choice_order',
'choice',
['attribute_id', 'order'],
deferrable=True,
initially='DEFERRED'
)


def downgrade():
pass

0 comments on commit cffbef0

Please sign in to comment.