mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 19:37:06 +00:00
fix: Shrink name fields to fit in indexed column
This commit is contained in:
23
activities/migrations/0005_shrink_name_fields_to_255.py
Normal file
23
activities/migrations/0005_shrink_name_fields_to_255.py
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# Generated by Django 2.2.10 on 2020-02-28 15:03
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('activities', '0004_activity_attendance_list'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='activity',
|
||||||
|
name='name',
|
||||||
|
field=models.CharField(max_length=255),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='activityseries',
|
||||||
|
name='name',
|
||||||
|
field=models.CharField(max_length=255),
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -42,7 +42,7 @@ class ActivitySeries(models.Model):
|
|||||||
verbose_name_plural = 'activity series'
|
verbose_name_plural = 'activity series'
|
||||||
|
|
||||||
#: Name of activity series
|
#: Name of activity series
|
||||||
name = models.CharField(max_length=1023,
|
name = models.CharField(max_length=255,
|
||||||
blank=False, null=False)
|
blank=False, null=False)
|
||||||
|
|
||||||
#: What type of activity does this series represent?
|
#: What type of activity does this series represent?
|
||||||
@@ -67,7 +67,7 @@ class Activity(models.Model):
|
|||||||
verbose_name_plural = 'activities'
|
verbose_name_plural = 'activities'
|
||||||
|
|
||||||
#: Name of activity
|
#: Name of activity
|
||||||
name = models.CharField(max_length=1023,
|
name = models.CharField(max_length=255,
|
||||||
blank=False, null=False)
|
blank=False, null=False)
|
||||||
|
|
||||||
#: Optional :class:`ActivitySeries` to which this activity belongs
|
#: Optional :class:`ActivitySeries` to which this activity belongs
|
||||||
|
|||||||
23
people/migrations/0015_shrink_name_fields_to_255.py
Normal file
23
people/migrations/0015_shrink_name_fields_to_255.py
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# Generated by Django 2.2.10 on 2020-02-28 15:03
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('people', '0014_person_role_themes'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='relationshipquestion',
|
||||||
|
name='text',
|
||||||
|
field=models.CharField(max_length=255),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='relationshipquestionchoice',
|
||||||
|
name='text',
|
||||||
|
field=models.CharField(max_length=255),
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -180,7 +180,7 @@ class RelationshipQuestion(models.Model):
|
|||||||
blank=False, null=False)
|
blank=False, null=False)
|
||||||
|
|
||||||
#: Text of question
|
#: Text of question
|
||||||
text = models.CharField(max_length=1023,
|
text = models.CharField(max_length=255,
|
||||||
blank=False, null=False)
|
blank=False, null=False)
|
||||||
|
|
||||||
#: Position of this question in the list
|
#: Position of this question in the list
|
||||||
@@ -221,7 +221,7 @@ class RelationshipQuestionChoice(models.Model):
|
|||||||
blank=False, null=False)
|
blank=False, null=False)
|
||||||
|
|
||||||
#: Text of answer
|
#: Text of answer
|
||||||
text = models.CharField(max_length=1023,
|
text = models.CharField(max_length=255,
|
||||||
blank=False, null=False)
|
blank=False, null=False)
|
||||||
|
|
||||||
#: Position of this answer in the list
|
#: Position of this answer in the list
|
||||||
|
|||||||
Reference in New Issue
Block a user