802047d28f89_drop_unique_constraint_on_commit_uid.py 554 B

12345678910111213141516171819202122232425262728
  1. """Drop unique constraint on commit UID
  2. Revision ID: 802047d28f89
  3. Revises: 5a2327825b9a
  4. Create Date: 2019-05-06 12:52:25.221300
  5. """
  6. from alembic import op
  7. import sqlalchemy as sa
  8. # revision identifiers, used by Alembic.
  9. revision = '802047d28f89'
  10. down_revision = '5a2327825b9a'
  11. def upgrade():
  12. """ Remove the constraint named: commit_flags_uid_key, pass otherwise. """
  13. try:
  14. op.drop_constraint('commit_flags_uid_key', 'commit_flags')
  15. except:
  16. pass
  17. def downgrade():
  18. """ We do not want to go back in fact. """
  19. pass