From ee1020e6711e246db79a0f4f99954ecad77aaaff Mon Sep 17 00:00:00 2001 From: vodorok Date: Thu, 31 Oct 2024 14:40:43 +0100 Subject: [PATCH] Drop unique constraint from super hash column --- .../report/versions/1e3bd4b04bcd_super_report_hash.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/server/codechecker_server/migrations/report/versions/1e3bd4b04bcd_super_report_hash.py b/web/server/codechecker_server/migrations/report/versions/1e3bd4b04bcd_super_report_hash.py index ab51eef28d..8f050cc351 100644 --- a/web/server/codechecker_server/migrations/report/versions/1e3bd4b04bcd_super_report_hash.py +++ b/web/server/codechecker_server/migrations/report/versions/1e3bd4b04bcd_super_report_hash.py @@ -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)) @@ -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 ###