From cfdc925c506382896bd61bfa69a5abd3703b58d4 Mon Sep 17 00:00:00 2001 From: palewire Date: Mon, 25 Jul 2022 10:12:08 -0700 Subject: [PATCH] Added migration to extend the character length on NamesCd fields --- .../migrations/0025_auto_20220725_1711.py | 29 +++++++++++++++++++ calaccess_raw/models/common.py | 6 ++-- 2 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 calaccess_raw/migrations/0025_auto_20220725_1711.py diff --git a/calaccess_raw/migrations/0025_auto_20220725_1711.py b/calaccess_raw/migrations/0025_auto_20220725_1711.py new file mode 100644 index 00000000..3184ec70 --- /dev/null +++ b/calaccess_raw/migrations/0025_auto_20220725_1711.py @@ -0,0 +1,29 @@ +# Generated by Django 3.2.13 on 2022-07-25 17:11 + +import calaccess_raw.fields +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('calaccess_raw', '0024_auto_20210822_2158'), + ] + + operations = [ + migrations.AlterField( + model_name='namescd', + name='fullname', + field=calaccess_raw.fields.CharField(db_column='FULLNAME', help_text='Full name', max_length=1000), + ), + migrations.AlterField( + model_name='namescd', + name='naml', + field=calaccess_raw.fields.CharField(db_column='NAML', help_text='Last name', max_length=1000), + ), + migrations.AlterField( + model_name='namescd', + name='naml_search', + field=calaccess_raw.fields.CharField(db_column='NAML_SEARCH', help_text='Last name', max_length=1000), + ), + ] diff --git a/calaccess_raw/models/common.py b/calaccess_raw/models/common.py index 49e35d5d..492cc114 100644 --- a/calaccess_raw/models/common.py +++ b/calaccess_raw/models/common.py @@ -2963,7 +2963,7 @@ class NamesCd(CalAccessBaseModel): help_text="Identification number unique to the name", ) naml = fields.CharField( - max_length=200, + max_length=1000, db_column='NAML', help_text="Last name", ) @@ -3003,12 +3003,12 @@ class NamesCd(CalAccessBaseModel): help_text="Middle name", ) fullname = fields.CharField( - max_length=200, + max_length=1000, db_column='FULLNAME', help_text="Full name", ) naml_search = fields.CharField( - max_length=200, + max_length=1000, db_column='NAML_SEARCH', help_text="Last name", )