MT#33006 tracker: resize mapper_type field

> django.db.utils.DataError: value too long for type character varying(15)

Change-Id: Ie6e9822177f04638f4b86a39b10208cb139ac758
pull/9/head
Victor Seva 3 years ago
parent a411dc8927
commit a67cd83f60

@ -0,0 +1,26 @@
# Generated by Django 3.2.15 on 2022-09-15 06:57
from django.db import migrations
from django.db import models
import tracker.conf
class Migration(migrations.Migration):
dependencies = [
("tracker", "0001_initial"),
]
operations = [
migrations.AlterField(
model_name="trackermapper",
name="mapper_type",
field=models.CharField(
choices=[
(tracker.conf.MapperType["ISSUE"], "Issue"),
(tracker.conf.MapperType["TASK"], "Task"),
],
max_length=50,
),
),
]

@ -79,7 +79,7 @@ class MantisInfo(TrackerInfo):
class TrackerMapper(models.Model):
mapper_type = models.CharField(
max_length=15, choices=[(tag, tag.value) for tag in MapperType]
max_length=50, choices=[(tag, tag.value) for tag in MapperType]
)
mantis_id = models.CharField(max_length=50, null=False, unique=True)
workfront_id = models.CharField(max_length=50, null=False, unique=True)

Loading…
Cancel
Save