Skip to content

Increase field size for ScanReportField.Name and ScanReportValue.Value in mapping Model - #1267

Merged
brian-kim31 merged 6 commits into
mainfrom
fieldsize_increase
Feb 4, 2026
Merged

Increase field size for ScanReportField.Name and ScanReportValue.Value in mapping Model#1267
brian-kim31 merged 6 commits into
mainfrom
fieldsize_increase

Conversation

@brian-kim31

Copy link
Copy Markdown
Contributor

⚡️ Optimization

PR Description

This PR increases the max length size of:

Mapping.ScanReportField.Name (512)
Mapping.ScanReportValue.Value (128)

To this

The max length size of:

Mapping.ScanReportField.Name (2048)
Mapping.ScanReportValue.Value (2048)

Related Issues or other material

Related #1257
Closes #1257

Screenshots, example outputs/behaviour etc.

Below is the migration file

# Generated by Django 5.2.8 on 2026-02-03 21:39

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('mapping', '0013_alter_datadictionary_id_alter_datapartner_id_and_more'),
    ]

    operations = [
        migrations.AlterField(
            model_name='scanreportfield',
            name='name',
            field=models.CharField(db_index=True, max_length=2048),
        ),
        migrations.AlterField(
            model_name='scanreportvalue',
            name='value',
            field=models.CharField(db_index=True, max_length=2048),
        ),
    ]

@brian-kim31 brian-kim31 changed the title Fieldsize increase Increase field size for ScanReportField.Name and ScanReportValue.Value in mapping table Feb 3, 2026
@brian-kim31 brian-kim31 changed the title Increase field size for ScanReportField.Name and ScanReportValue.Value in mapping table Increase field size for ScanReportField.Name and ScanReportValue.Value in mapping Model Feb 3, 2026
@github-project-automation github-project-automation Bot moved this to MoreInfo in Carrot Backlog Feb 3, 2026
@brian-kim31 brian-kim31 moved this from MoreInfo to In Progress in Carrot Backlog Feb 3, 2026
@brian-kim31
brian-kim31 merged commit 5bbc561 into main Feb 4, 2026
12 checks passed
@brian-kim31
brian-kim31 deleted the fieldsize_increase branch February 4, 2026 14:55
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Carrot Backlog Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Field sizes for field and value names should be bigger

3 participants