Skip to content

Commit

Permalink
chore: Merge conflicting snippets migrations and fix unique constraint (
Browse files Browse the repository at this point in the history
#366)

* chore: Merge conflicting snippets migrations

Fixes #364

* Move unique constraint to a separate migration

---------

Co-authored-by: Kesara Rathnayake <[email protected]>
  • Loading branch information
mgax and kesara authored Dec 17, 2023
1 parent 62050d6 commit fe70090
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ietf/snippets/migrations/0003_person_slug.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='person',
name='slug',
field=models.SlugField(default='', max_length=511, unique=True),
field=models.SlugField(default='', max_length=511),
preserve_default=False,
),
migrations.RunPython(generate_person_slugs, migrations.RunPython.noop),
Expand Down
19 changes: 19 additions & 0 deletions ietf/snippets/migrations/0004_merge_20231215_0352.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Generated by Django 4.2.7 on 2023-12-15 03:52

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('snippets', '0003_alter_workinggroup_list_subscribe'),
('snippets', '0003_person_slug'),
]

operations = [
migrations.AlterField(
model_name='person',
name='slug',
field=models.SlugField(max_length=511, unique=True),
),
]

0 comments on commit fe70090

Please sign in to comment.