Skip to content

Commit e185083

Browse files
committed
make it a proper separate migration
so existing installations can be updated properly
1 parent 31ae955 commit e185083

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

djangoplugins/migrations/0001_initial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ class Migration(migrations.Migration):
4242
),
4343
migrations.AlterUniqueTogether(
4444
name='plugin',
45-
unique_together=set([('point', 'name', 'index')]),
45+
unique_together=set([('point', 'name')]),
4646
),
4747
]
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import unicode_literals
3+
4+
from django.db import migrations, models
5+
import dirtyfields.dirtyfields
6+
7+
8+
class Migration(migrations.Migration):
9+
10+
dependencies = [
11+
('djangoplugins', '0001_initial'),
12+
]
13+
14+
operations = [
15+
migrations.AlterUniqueTogether(
16+
name='plugin',
17+
unique_together=set([('point', 'name', 'index')]),
18+
),
19+
]

0 commit comments

Comments
 (0)