mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 03:17:07 +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'
|
||||
|
||||
#: Name of activity series
|
||||
name = models.CharField(max_length=1023,
|
||||
name = models.CharField(max_length=255,
|
||||
blank=False, null=False)
|
||||
|
||||
#: What type of activity does this series represent?
|
||||
@@ -67,7 +67,7 @@ class Activity(models.Model):
|
||||
verbose_name_plural = 'activities'
|
||||
|
||||
#: Name of activity
|
||||
name = models.CharField(max_length=1023,
|
||||
name = models.CharField(max_length=255,
|
||||
blank=False, null=False)
|
||||
|
||||
#: Optional :class:`ActivitySeries` to which this activity belongs
|
||||
|
||||
Reference in New Issue
Block a user