diff --git a/shared/django_apps/reports/migrations/0020_alter_reportleveltotals_coverage_and_more.py b/shared/django_apps/reports/migrations/0020_alter_reportleveltotals_coverage_and_more.py new file mode 100644 index 00000000..adfaae9a --- /dev/null +++ b/shared/django_apps/reports/migrations/0020_alter_reportleveltotals_coverage_and_more.py @@ -0,0 +1,24 @@ +# Generated by Django 4.2.11 on 2024-05-21 13:57 + +from django.db import migrations, models + +from shared.django_apps.migration_utils import RiskyAlterField + + +class Migration(migrations.Migration): + dependencies = [ + ("reports", "0019_auto_20240424_1824"), + ] + + operations = [ + RiskyAlterField( + model_name="reportleveltotals", + name="coverage", + field=models.DecimalField(decimal_places=5, max_digits=8), + ), + RiskyAlterField( + model_name="uploadleveltotals", + name="coverage", + field=models.DecimalField(decimal_places=5, max_digits=8), + ), + ] diff --git a/shared/django_apps/reports/models.py b/shared/django_apps/reports/models.py index b480f91e..57a1b4de 100644 --- a/shared/django_apps/reports/models.py +++ b/shared/django_apps/reports/models.py @@ -30,7 +30,7 @@ class AbstractTotals( ExportModelOperationsMixin("reports.abstract_totals"), BaseCodecovModel ): branches = models.IntegerField() - coverage = models.DecimalField(max_digits=7, decimal_places=2) + coverage = models.DecimalField(max_digits=8, decimal_places=5) hits = models.IntegerField() lines = models.IntegerField() methods = models.IntegerField()