Skip to content

Commit

Permalink
remove unique constraint from Test table (#485)
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-sentry authored Jan 21, 2025
1 parent 6c6d5a1 commit 09d69db
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.2.16 on 2025-01-20 17:39

from django.db import migrations

from shared.django_apps.migration_utils import RiskyRemoveConstraint


class Migration(migrations.Migration):
dependencies = [
("reports", "0037_alter_reportsession_storage_path"),
]

operations = [
RiskyRemoveConstraint(
model_name="test",
name="reports_test_repoid_name_testsuite_flags_hash",
),
]
6 changes: 0 additions & 6 deletions shared/django_apps/reports/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,12 +279,6 @@ class Framework(models.TextChoices):
class Meta:
app_label = REPORTS_APP_LABEL
db_table = "reports_test"
constraints = [
models.UniqueConstraint(
fields=["repository", "name", "testsuite", "flags_hash"],
name="reports_test_repoid_name_testsuite_flags_hash",
),
]


class TestInstance(BaseCodecovModel):
Expand Down

0 comments on commit 09d69db

Please sign in to comment.