Skip to content

Commit c2fc750

Browse files
authored
Merge pull request #4837 from rtfd/update-migration
Add all migrations that are missing from model changes
2 parents cac4fcc + f94aaaa commit c2fc750

File tree

6 files changed

+144
-0
lines changed

6 files changed

+144
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ matrix:
1616
script: tox
1717
- python: 3.6
1818
env: TOXENV=eslint
19+
- python: 3.6
20+
env: TOXENV=migrations
1921
cache:
2022
directories:
2123
- ~/.cache/pip
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# -*- coding: utf-8 -*-
2+
# Generated by Django 1.11.16 on 2018-10-31 11:25
3+
from __future__ import unicode_literals
4+
5+
from django.db import migrations, models
6+
7+
8+
class Migration(migrations.Migration):
9+
10+
dependencies = [
11+
('gold', '0002_rename_last_4_digits'),
12+
]
13+
14+
operations = [
15+
migrations.AlterField(
16+
model_name='golduser',
17+
name='level',
18+
field=models.CharField(choices=[('v1-org-5', '$5/mo'), ('v1-org-10', '$10/mo'), ('v1-org-15', '$15/mo'), ('v1-org-20', '$20/mo'), ('v1-org-50', '$50/mo'), ('v1-org-100', '$100/mo')], default='v1-org-5', max_length=20, verbose_name='Level'),
19+
),
20+
]
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# -*- coding: utf-8 -*-
2+
# Generated by Django 1.11.16 on 2018-10-31 11:25
3+
from __future__ import unicode_literals
4+
5+
from django.db import migrations, models
6+
7+
8+
class Migration(migrations.Migration):
9+
10+
dependencies = [
11+
('integrations', '0002_add-webhook'),
12+
]
13+
14+
operations = [
15+
migrations.CreateModel(
16+
name='BitbucketWebhook',
17+
fields=[
18+
],
19+
options={
20+
'proxy': True,
21+
'indexes': [],
22+
},
23+
bases=('integrations.integration',),
24+
),
25+
migrations.CreateModel(
26+
name='GenericAPIWebhook',
27+
fields=[
28+
],
29+
options={
30+
'proxy': True,
31+
'indexes': [],
32+
},
33+
bases=('integrations.integration',),
34+
),
35+
migrations.CreateModel(
36+
name='GitHubWebhook',
37+
fields=[
38+
],
39+
options={
40+
'proxy': True,
41+
'indexes': [],
42+
},
43+
bases=('integrations.integration',),
44+
),
45+
migrations.CreateModel(
46+
name='GitLabWebhook',
47+
fields=[
48+
],
49+
options={
50+
'proxy': True,
51+
'indexes': [],
52+
},
53+
bases=('integrations.integration',),
54+
),
55+
migrations.AlterField(
56+
model_name='integration',
57+
name='integration_type',
58+
field=models.CharField(choices=[('github_webhook', 'GitHub incoming webhook'), ('bitbucket_webhook', 'Bitbucket incoming webhook'), ('gitlab_webhook', 'GitLab incoming webhook'), ('api_webhook', 'Generic API incoming webhook')], max_length=32, verbose_name='Integration type'),
59+
),
60+
]
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# -*- coding: utf-8 -*-
2+
# Generated by Django 1.11.16 on 2018-10-31 11:25
3+
from __future__ import unicode_literals
4+
5+
import django.core.validators
6+
from django.db import migrations, models
7+
8+
9+
class Migration(migrations.Migration):
10+
11+
dependencies = [
12+
('oauth', '0008_add-project-relation'),
13+
]
14+
15+
operations = [
16+
migrations.AlterField(
17+
model_name='remoterepository',
18+
name='clone_url',
19+
field=models.URLField(blank=True, max_length=512, validators=[django.core.validators.URLValidator(schemes=['http', 'https', 'ssh', 'git', 'svn'])], verbose_name='Repository clone URL'),
20+
),
21+
migrations.AlterField(
22+
model_name='remoterepository',
23+
name='ssh_url',
24+
field=models.URLField(blank=True, max_length=512, validators=[django.core.validators.URLValidator(schemes=['ssh'])], verbose_name='SSH URL'),
25+
),
26+
migrations.AlterField(
27+
model_name='remoterepository',
28+
name='vcs',
29+
field=models.CharField(blank=True, choices=[('git', 'Git'), ('svn', 'Subversion'), ('hg', 'Mercurial'), ('bzr', 'Bazaar')], max_length=200, verbose_name='vcs'),
30+
),
31+
]
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# -*- coding: utf-8 -*-
2+
# Generated by Django 1.11.16 on 2018-10-31 11:25
3+
from __future__ import unicode_literals
4+
5+
from django.db import migrations, models
6+
7+
8+
class Migration(migrations.Migration):
9+
10+
dependencies = [
11+
('redirects', '0001_initial'),
12+
]
13+
14+
operations = [
15+
migrations.AlterField(
16+
model_name='redirect',
17+
name='redirect_type',
18+
field=models.CharField(choices=[('prefix', 'Prefix Redirect'), ('page', 'Page Redirect'), ('exact', 'Exact Redirect'), ('sphinx_html', 'Sphinx HTMLDir -> HTML'), ('sphinx_htmldir', 'Sphinx HTML -> HTMLDir')], help_text='The type of redirect you wish to use.', max_length=255, verbose_name='Redirect Type'),
19+
),
20+
migrations.AlterField(
21+
model_name='redirect',
22+
name='to_url',
23+
field=models.CharField(blank=True, db_index=True, help_text='Absolute or relative URL. Example: <b>/tutorial/install.html</b>', max_length=255, verbose_name='To URL'),
24+
),
25+
]

tox.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ changedir = {toxinidir}/docs
2828
commands =
2929
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
3030

31+
[testenv:migrations]
32+
description = check for missing migrations
33+
changedir = {toxinidir}
34+
commands =
35+
./manage.py makemigrations --check --dry-run
36+
3137
[testenv:docs-lint]
3238
description = run linter (rstcheck) to ensure there aren't errors on our docs
3339
deps = -r{toxinidir}/requirements/docs-lint.txt

0 commit comments

Comments
 (0)