Skip to content

Commit

Permalink
Added migration to extend the character length on NamesCd fields
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Jul 25, 2022
1 parent 7bb995a commit cfdc925
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
29 changes: 29 additions & 0 deletions calaccess_raw/migrations/0025_auto_20220725_1711.py
Original file line number Diff line number Diff line change
@@ -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),
),
]
6 changes: 3 additions & 3 deletions calaccess_raw/models/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
Expand Down Expand Up @@ -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",
)
Expand Down

0 comments on commit cfdc925

Please sign in to comment.