Skip to content

Commit 25eb00c

Browse files
committed
New django-1.7 initial migrations. Circular references exist, requiring explicit --fake migration for doc, dbtemplate and community apps.
- Legacy-Id: 8823
1 parent 7688165 commit 25eb00c

14 files changed

Lines changed: 2312 additions & 0 deletions

File tree

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import unicode_literals
3+
4+
from django.db import models, migrations
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
]
11+
12+
operations = [
13+
migrations.CreateModel(
14+
name='CommunityList',
15+
fields=[
16+
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
17+
('secret', models.CharField(max_length=255, null=True, blank=True)),
18+
('cached', models.TextField(null=True, blank=True)),
19+
],
20+
options={
21+
},
22+
bases=(models.Model,),
23+
),
24+
migrations.CreateModel(
25+
name='DisplayConfiguration',
26+
fields=[
27+
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
28+
('sort_method', models.CharField(default=b'by_filename', max_length=100, choices=[(b'by_filename', b'Alphabetical by I-D filename and RFC number'), (b'by_title', b'Alphabetical by document title'), (b'by_wg', b'Alphabetical by associated WG'), (b'date_publication', b'Date of publication of current version of the document'), (b'recent_change', b'Date of most recent change of status of any type'), (b'recent_significant', b'Date of most recent significant change of status')])),
29+
('display_fields', models.TextField(default=b'filename,title,date')),
30+
],
31+
options={
32+
},
33+
bases=(models.Model,),
34+
),
35+
migrations.CreateModel(
36+
name='DocumentChangeDates',
37+
fields=[
38+
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
39+
('new_version_date', models.DateTimeField(null=True, blank=True)),
40+
('normal_change_date', models.DateTimeField(null=True, blank=True)),
41+
('significant_change_date', models.DateTimeField(null=True, blank=True)),
42+
],
43+
options={
44+
},
45+
bases=(models.Model,),
46+
),
47+
migrations.CreateModel(
48+
name='EmailSubscription',
49+
fields=[
50+
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
51+
('email', models.CharField(max_length=200)),
52+
('significant', models.BooleanField(default=False)),
53+
],
54+
options={
55+
},
56+
bases=(models.Model,),
57+
),
58+
migrations.CreateModel(
59+
name='ExpectedChange',
60+
fields=[
61+
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
62+
('expected_date', models.DateField(verbose_name=b'Expected date')),
63+
],
64+
options={
65+
},
66+
bases=(models.Model,),
67+
),
68+
migrations.CreateModel(
69+
name='ListNotification',
70+
fields=[
71+
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
72+
('significant', models.BooleanField(default=False)),
73+
],
74+
options={
75+
},
76+
bases=(models.Model,),
77+
),
78+
migrations.CreateModel(
79+
name='Rule',
80+
fields=[
81+
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
82+
('rule_type', models.CharField(max_length=30, choices=[(b'wg_asociated', b'All I-Ds associated with a particular WG'), (b'area_asociated', b'All I-Ds associated with all WGs in a particular Area'), (b'ad_responsible', b'All I-Ds with a particular responsible AD'), (b'author', b'All I-Ds with a particular author'), (b'shepherd', b'All I-Ds with a particular document shepherd'), (b'with_text', b'All I-Ds that contain a particular text string in the name'), (b'in_iab_state', b'All I-Ds that are in a particular IAB state'), (b'in_iana_state', b'All I-Ds that are in a particular IANA state'), (b'in_iesg_state', b'All I-Ds that are in a particular IESG state'), (b'in_irtf_state', b'All I-Ds that are in a particular IRTF state'), (b'in_ise_state', b'All I-Ds that are in a particular ISE state'), (b'in_rfcEdit_state', b'All I-Ds that are in a particular RFC Editor state'), (b'in_wg_state', b'All I-Ds that are in a particular Working Group state'), (b'wg_asociated_rfc', b'All RFCs associated with a particular WG'), (b'area_asociated_rfc', b'All RFCs associated with all WGs in a particular Area'), (b'author_rfc', b'All RFCs with a particular author')])),
83+
('value', models.CharField(max_length=255)),
84+
('last_updated', models.DateTimeField(auto_now=True)),
85+
],
86+
options={
87+
},
88+
bases=(models.Model,),
89+
),
90+
]
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import unicode_literals
3+
4+
from django.db import models, migrations
5+
from django.conf import settings
6+
7+
8+
class Migration(migrations.Migration):
9+
10+
dependencies = [
11+
('group', '0001_initial'),
12+
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
13+
('community', '0001_initial'),
14+
('doc', '0001_initial'),
15+
]
16+
17+
operations = [
18+
migrations.AddField(
19+
model_name='rule',
20+
name='cached_ids',
21+
field=models.ManyToManyField(to='doc.Document'),
22+
preserve_default=True,
23+
),
24+
migrations.AddField(
25+
model_name='rule',
26+
name='community_list',
27+
field=models.ForeignKey(to='community.CommunityList'),
28+
preserve_default=True,
29+
),
30+
migrations.AlterUniqueTogether(
31+
name='rule',
32+
unique_together=set([('community_list', 'rule_type', 'value')]),
33+
),
34+
migrations.AddField(
35+
model_name='listnotification',
36+
name='event',
37+
field=models.ForeignKey(to='doc.DocEvent'),
38+
preserve_default=True,
39+
),
40+
migrations.AddField(
41+
model_name='expectedchange',
42+
name='community_list',
43+
field=models.ForeignKey(to='community.CommunityList'),
44+
preserve_default=True,
45+
),
46+
migrations.AddField(
47+
model_name='expectedchange',
48+
name='document',
49+
field=models.ForeignKey(to='doc.Document'),
50+
preserve_default=True,
51+
),
52+
migrations.AddField(
53+
model_name='emailsubscription',
54+
name='community_list',
55+
field=models.ForeignKey(to='community.CommunityList'),
56+
preserve_default=True,
57+
),
58+
migrations.AddField(
59+
model_name='documentchangedates',
60+
name='document',
61+
field=models.ForeignKey(to='doc.Document'),
62+
preserve_default=True,
63+
),
64+
migrations.AddField(
65+
model_name='displayconfiguration',
66+
name='community_list',
67+
field=models.ForeignKey(to='community.CommunityList'),
68+
preserve_default=True,
69+
),
70+
migrations.AddField(
71+
model_name='communitylist',
72+
name='added_ids',
73+
field=models.ManyToManyField(to='doc.Document'),
74+
preserve_default=True,
75+
),
76+
migrations.AddField(
77+
model_name='communitylist',
78+
name='group',
79+
field=models.ForeignKey(blank=True, to='group.Group', null=True),
80+
preserve_default=True,
81+
),
82+
migrations.AddField(
83+
model_name='communitylist',
84+
name='user',
85+
field=models.ForeignKey(blank=True, to=settings.AUTH_USER_MODEL, null=True),
86+
preserve_default=True,
87+
),
88+
]
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import unicode_literals
3+
4+
from django.db import models, migrations
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
]
11+
12+
operations = [
13+
migrations.CreateModel(
14+
name='DBTemplate',
15+
fields=[
16+
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
17+
('path', models.CharField(unique=True, max_length=255)),
18+
('title', models.CharField(max_length=255)),
19+
('variables', models.TextField(null=True, blank=True)),
20+
('content', models.TextField()),
21+
],
22+
options={
23+
},
24+
bases=(models.Model,),
25+
),
26+
]
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import unicode_literals
3+
4+
from django.db import models, migrations
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
('group', '0001_initial'),
11+
('name', '0001_initial'),
12+
('dbtemplate', '0001_initial'),
13+
]
14+
15+
operations = [
16+
migrations.AddField(
17+
model_name='dbtemplate',
18+
name='group',
19+
field=models.ForeignKey(blank=True, to='group.Group', null=True),
20+
preserve_default=True,
21+
),
22+
migrations.AddField(
23+
model_name='dbtemplate',
24+
name='type',
25+
field=models.ForeignKey(to='name.DBTemplateTypeName'),
26+
preserve_default=True,
27+
),
28+
]

0 commit comments

Comments
 (0)