Increase the max length of the scratch name field

This commit is contained in:
Ethan Roseman
2021-12-31 01:27:24 +09:00
parent 4be883124c
commit a50e0435a5
2 changed files with 19 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
# Generated by Django 3.2.4 on 2021-12-30 16:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('coreapp', '0011_alter_scratch_diff_label'),
]
operations = [
migrations.AlterField(
model_name='scratch',
name='name',
field=models.CharField(blank=True, default='', max_length=512),
),
]

View File

@@ -45,7 +45,7 @@ class Assembly(models.Model):
class Scratch(models.Model):
slug = models.SlugField(primary_key=True, default=gen_scratch_id)
name = models.CharField(max_length=100, default="", blank=True)
name = models.CharField(max_length=512, default="", blank=True)
description = models.TextField(max_length=5000, default="", blank=True)
creation_time = models.DateTimeField(auto_now_add=True)
last_updated = models.DateTimeField(auto_now=True)