diff --git a/hub/migrations/0060_alter_person_id_type.py b/hub/migrations/0060_alter_person_id_type.py new file mode 100644 index 000000000..919e7417a --- /dev/null +++ b/hub/migrations/0060_alter_person_id_type.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2.5 on 2023-12-14 15:56 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("hub", "0059_person_end_date_person_start_date"), + ] + + operations = [ + migrations.AlterField( + model_name="person", + name="id_type", + field=models.CharField(max_length=30), + ), + ] diff --git a/hub/models.py b/hub/models.py index c1e0bf055..196aa4d9e 100644 --- a/hub/models.py +++ b/hub/models.py @@ -583,7 +583,7 @@ class AreaData(CommonData): class Person(models.Model): person_type = models.CharField(max_length=10) external_id = models.CharField(db_index=True, max_length=20) - id_type = models.CharField(max_length=10) + id_type = models.CharField(max_length=30) name = models.CharField(max_length=200) area = models.ForeignKey(Area, on_delete=models.CASCADE) photo = models.ImageField(null=True, upload_to="person")