Skip to content
This repository has been archived by the owner on Jul 2, 2019. It is now read-only.

Migrations are not fully in sync with Models #14

Closed
smeinel opened this issue Mar 25, 2016 · 0 comments
Closed

Migrations are not fully in sync with Models #14

smeinel opened this issue Mar 25, 2016 · 0 comments

Comments

@smeinel
Copy link

smeinel commented Mar 25, 2016

If you perform manage migrate, Django will output:

Your models have changes that are not yet reflected in a migration, and so won't be applied.
Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them.

If you then run manage makemigrations the following migration will be created for bouncy:

# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

    dependencies = [
        ('django_bouncy', '0002_auto_20150927_1413'),
    ]

    operations = [
        migrations.AlterField(
            model_name='bounce',
            name='action',
            field=models.CharField(null=True, blank=True, verbose_name='Action', max_length=150, db_index=True),
        ),
        migrations.AlterField(
            model_name='bounce',
            name='bounce_subtype',
            field=models.CharField(verbose_name='Bounce Subtype', max_length=50, db_index=True),
        ),
        migrations.AlterField(
            model_name='bounce',
            name='bounce_type',
            field=models.CharField(verbose_name='Bounce Type', max_length=50, db_index=True),
        ),
        migrations.AlterField(
            model_name='bounce',
            name='feedback_timestamp',
            field=models.DateTimeField(verbose_name='Feedback Time'),
        ),
        migrations.AlterField(
            model_name='bounce',
            name='hard',
            field=models.BooleanField(verbose_name='Hard Bounce', db_index=True),
        ),
        migrations.AlterField(
            model_name='complaint',
            name='feedback_timestamp',
            field=models.DateTimeField(verbose_name='Feedback Time'),
        ),
        migrations.AlterField(
            model_name='complaint',
            name='feedback_type',
            field=models.CharField(null=True, blank=True, verbose_name='Complaint Type', max_length=150, db_index=True),
        ),
    ]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant