Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit 09d69db

Browse files
remove unique constraint from Test table (#485)
1 parent 6c6d5a1 commit 09d69db

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 4.2.16 on 2025-01-20 17:39
2+
3+
from django.db import migrations
4+
5+
from shared.django_apps.migration_utils import RiskyRemoveConstraint
6+
7+
8+
class Migration(migrations.Migration):
9+
dependencies = [
10+
("reports", "0037_alter_reportsession_storage_path"),
11+
]
12+
13+
operations = [
14+
RiskyRemoveConstraint(
15+
model_name="test",
16+
name="reports_test_repoid_name_testsuite_flags_hash",
17+
),
18+
]

shared/django_apps/reports/models.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -279,12 +279,6 @@ class Framework(models.TextChoices):
279279
class Meta:
280280
app_label = REPORTS_APP_LABEL
281281
db_table = "reports_test"
282-
constraints = [
283-
models.UniqueConstraint(
284-
fields=["repository", "name", "testsuite", "flags_hash"],
285-
name="reports_test_repoid_name_testsuite_flags_hash",
286-
),
287-
]
288282

289283

290284
class TestInstance(BaseCodecovModel):

0 commit comments

Comments
 (0)