Skip to content

Commit

Permalink
Drop unique constraint from super hash column
Browse files Browse the repository at this point in the history
  • Loading branch information
vodorok committed Oct 31, 2024
1 parent 688a598 commit ee1020e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def upgrade():
# Create the index
batch_op.create_index('ix_reports_super_hash', ['super_hash'], unique=False)
# Create the unique constraint
batch_op.create_unique_constraint('uq_reports_super_hash', ['super_hash'])
# batch_op.create_unique_constraint('uq_reports_super_hash', ['super_hash'])


#op.add_column('reports', sa.Column('super_hash', sa.String(), nullable=False))
Expand All @@ -41,7 +41,7 @@ def upgrade():
def downgrade():
LOG = getLogger("migration/report")
# ### commands auto generated by Alembic - please adjust! ###
op.drop_constraint(op.f('uq_reports_super_hash'), 'reports', type_='unique')
# op.drop_constraint(op.f('uq_reports_super_hash'), 'reports', type_='unique')
op.drop_index(op.f('ix_reports_super_hash'), table_name='reports')
op.drop_column('reports', 'super_hash')
# ### end Alembic commands ###

0 comments on commit ee1020e

Please sign in to comment.