1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('patchwork', '0030_add_submission_covering_index'),
]
operations = [
# Add Patch.series_alt, Patch.number fields. This will store the fields
# currently stored in SeriesPatch
migrations.AddField(
model_name='patch',
name='number',
field=models.PositiveSmallIntegerField(
default=None,
help_text=b'The number assigned to this patch in the series',
null=True,
),
),
migrations.AddField(
model_name='patch',
name='series_alt',
field=models.ForeignKey(
blank=True,
null=True,
on_delete=django.db.models.deletion.CASCADE,
to='patchwork.Series',
),
),
migrations.AlterUniqueTogether(
name='patch', unique_together=set([('series_alt', 'number')]),
),
]
|