#27038: Migration being created even when no change was made.
--------------------------------+--------------------------------------
     Reporter:  rserrano        |                    Owner:  nobody
         Type:  Bug             |                   Status:  closed
    Component:  Migrations      |                  Version:  1.9
     Severity:  Normal          |               Resolution:  needsinfo
     Keywords:  makemigrations  |             Triage Stage:  Unreviewed
    Has patch:  0               |      Needs documentation:  0
  Needs tests:  0               |  Patch needs improvement:  0
Easy pickings:  0               |                    UI/UX:  0
--------------------------------+--------------------------------------

Comment (by rserrano):

 Of course. This is the squashed migration.

 {{{#!python
 # -*- coding: utf-8 -*-
 # Generated by Django 1.9.7 on 2016-08-09 00:17
 from __future__ import unicode_literals

 import django.core.validators
 from django.db import migrations, models
 import django.db.models.deletion
 import django.utils.timezone
 import studies.model_mixins


 class Migration(migrations.Migration):

     replaces = [(b'studies', '0055_auto_20160713_1637'), (b'studies',
 '0056_auto_20160713_2229'), (b'studies', '0057_auto_20160714_2357'),
 (b'studies', '0058_auto_20160728_2032'), (b'studies',
 '0059_auto_20160801_2020'), (b'studies', '0060_auto_20160805_1655'),
 (b'studies', '0061_auto_20160808_2135')]

     dependencies = [
         ('studies', '0054_auto_20160711_0144'),
     ]

     operations = [

         migrations.CreateModel(
             name='Layer3D',
             fields=[
                 ('id', models.AutoField(auto_created=True,
 primary_key=True, serialize=False, verbose_name='ID')),
                 ('last_modified', models.DateTimeField(auto_now=True)),
                 ('info', models.TextField(default=b'{}',
 verbose_name='layer info')),
             ],
             options={
                 'ordering': ['name'],
             },
         ),
         migrations.CreateModel(
             name='Layer3dProjection',
             fields=[
                 ('id', models.AutoField(auto_created=True,
 primary_key=True, serialize=False, verbose_name='ID')),
                 ('name', models.CharField(default=b'', max_length=40,
 unique=True,
 validators=[django.core.validators.RegexValidator(message='Name should
 only contain letters, numbers, spaces, underscores and dots.',
 regex=b"^[A-Za-z0-9][A-Za-z0-9' _\\.-]*[A-Za-z0-9']$")],
 verbose_name='name')),
                 ('distance', models.FloatField(default=-1,
 verbose_name='distance to search lines')),
                 ('last_modified', models.DateTimeField(auto_now=True)),
                 ('layer3d',
 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
 to='studies.Layer3d', verbose_name='layer3d to project')),
                 ('llist',
 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
 to='studies.LayerList', verbose_name='layer list')),
             ],
             options={
                 'ordering': ['name'],
             },
             bases=(models.Model,
 studies.model_mixins.Layer3dProjectionMixin),
         ),
         migrations.AlterUniqueTogether(
             name='layer3dprojection',
             unique_together=set([('llist', 'name')]),
         ),
     ]
 }}}

 Sorry I had not seen the reply.

--
Ticket URL: <https://code.djangoproject.com/ticket/27038#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.005a5ca15fe9bd4c33ecbeea96fedc09%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to