Skip to content

Commit

Permalink
fix identifier length for mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenklar committed Dec 19, 2016
1 parent 91dff32 commit 1b7b639
Show file tree
Hide file tree
Showing 10 changed files with 111 additions and 6 deletions.
20 changes: 20 additions & 0 deletions apps/conditions/migrations/0012_fix_identifer_length.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-12-19 11:25
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('conditions', '0011_refactoring'),
]

operations = [
migrations.AlterField(
model_name='condition',
name='identifier',
field=models.SlugField(help_text='The unambiguous internal identifier of this condition.', max_length=128, unique=True, verbose_name='Identifier'),
),
]
2 changes: 1 addition & 1 deletion apps/conditions/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Condition(models.Model):
)

identifier = models.SlugField(
max_length=256, unique=True,
max_length=128, unique=True,
verbose_name=_('Identifier'),
help_text=_('The unambiguous internal identifier of this condition.')
)
Expand Down
20 changes: 20 additions & 0 deletions apps/domain/migrations/0027_fix_identifer_length.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-12-19 11:25
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('domain', '0026_refactoring'),
]

operations = [
migrations.AlterField(
model_name='attributeentity',
name='identifier',
field=models.SlugField(help_text='Unambiguous internal identifier of this attribute/entity.', max_length=128, verbose_name='Identifier'),
),
]
2 changes: 1 addition & 1 deletion apps/domain/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class AttributeEntity(MPTTModel):
help_text=_('Parent entity in the domain model.')
)
identifier = models.SlugField(
max_length=256,
max_length=128,
verbose_name=_('Identifier'),
help_text=_('Unambiguous internal identifier of this attribute/entity.')
)
Expand Down
25 changes: 25 additions & 0 deletions apps/options/migrations/0008_fix_identifer_length.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-12-19 11:25
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('options', '0007_typo'),
]

operations = [
migrations.AlterField(
model_name='option',
name='identifier',
field=models.SlugField(help_text='The unambiguous internal identifier of this option.', max_length=128, verbose_name='Identifier'),
),
migrations.AlterField(
model_name='optionset',
name='identifier',
field=models.SlugField(help_text='The unambiguous internal identifier of this option set.', max_length=128, unique=True, verbose_name='Identifier'),
),
]
4 changes: 2 additions & 2 deletions apps/options/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class OptionSet(models.Model):

identifier = models.SlugField(
max_length=256, unique=True,
max_length=128, unique=True,
verbose_name=_('Identifier'),
help_text=_('The unambiguous internal identifier of this option set.')
)
Expand Down Expand Up @@ -55,7 +55,7 @@ class Option(models.Model, TranslationMixin):
help_text=_('The option set this option belongs to.')
)
identifier = models.SlugField(
max_length=256, db_index=True,
max_length=128, db_index=True,
verbose_name=_('Identifier'),
help_text=_('The unambiguous internal identifier of this option.')
)
Expand Down
20 changes: 20 additions & 0 deletions apps/tasks/migrations/0007_fix_identifer_length.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-12-19 11:25
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('tasks', '0006_unique_identifier'),
]

operations = [
migrations.AlterField(
model_name='task',
name='identifier',
field=models.SlugField(help_text='The unambiguous internal identifier of this task.', max_length=128, unique=True, verbose_name='Identifier'),
),
]
2 changes: 1 addition & 1 deletion apps/tasks/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
class Task(TranslationMixin, models.Model):

identifier = models.SlugField(
max_length=256, unique=True,
max_length=128, unique=True,
verbose_name=_('Identifier'),
help_text=_('The unambiguous internal identifier of this task.')
)
Expand Down
20 changes: 20 additions & 0 deletions apps/views/migrations/0005_fix_identifer_length.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-12-19 11:25
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('views', '0004_refactoring'),
]

operations = [
migrations.AlterField(
model_name='view',
name='identifier',
field=models.SlugField(help_text='The unambiguous internal identifier of this view.', max_length=128, unique=True, verbose_name='Identifier'),
),
]
2 changes: 1 addition & 1 deletion apps/views/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
class View(models.Model):

identifier = models.SlugField(
max_length=256, unique=True,
max_length=128, unique=True,
verbose_name=_('Identifier'),
help_text=_('The unambiguous internal identifier of this view.')
)
Expand Down

0 comments on commit 1b7b639

Please sign in to comment.