1
0
mirror of https://github.com/django/django.git synced 2025-10-24 22:26:08 +00:00

[1.10.x] Fixed #26647 -- Included the state of all applied migrations when migrating forward.

Thanks Jasper Maes for the detailed report.

Backport of 36d36818a3 from master
This commit is contained in:
Simon Charette
2016-05-22 20:35:10 -04:00
parent 699e43b017
commit dfae72f45a
9 changed files with 95 additions and 2 deletions

View File

@@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mutate_state_b', '0001_initial'),
]
operations = [
migrations.SeparateDatabaseAndState([], [
migrations.CreateModel(
name='A',
fields=[
('id', models.AutoField(serialize=False, verbose_name='ID', auto_created=True, primary_key=True)),
],
),
])
]

View File

@@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.SeparateDatabaseAndState([], [
migrations.CreateModel(
name='B',
fields=[
('id', models.AutoField(serialize=False, verbose_name='ID', auto_created=True, primary_key=True)),
],
),
])
]

View File

@@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mutate_state_b', '0001_initial'),
]
operations = [
migrations.SeparateDatabaseAndState([], [
migrations.AddField(
model_name='B',
name='added',
field=models.TextField(),
),
])
]