Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Migration #19

Open
spacecodeit opened this issue Sep 27, 2022 · 1 comment
Open

Missing Migration #19

spacecodeit opened this issue Sep 27, 2022 · 1 comment

Comments

@spacecodeit
Copy link

Hello,

always when I run my migrations I receive the following error, can you please add the missing migration.

Your models in app(s): 'simple_mail' 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.
docker compose run --rm app sh -c "python manage.py makemigrations && cat /usr/local/lib/python3.9/site-packages/simple_mail/migrations/0002_auto_20220927_*"       
[+] Running 1/0
 ⠿ Container app-api-v2-db-1  Running                                                                                                                                                                                                                                                                                                                                                                                0.0s
Migrations for 'simple_mail':
  /usr/local/lib/python3.9/site-packages/simple_mail/migrations/0002_auto_20220927_1532.py
    - Alter field banner on simplemail
    - Alter field logo on simplemailconfig
# Generated by Django 3.2.15 on 2022-09-27 15:32

import django.core.files.storage
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('simple_mail', '0001_initial'),
    ]

    operations = [
        migrations.AlterField(
            model_name='simplemail',
            name='banner',
            field=models.ImageField(blank=True, null=True, storage=django.core.files.storage.FileSystemStorage(), upload_to='simple_mail', verbose_name='Banner'),
        ),
        migrations.AlterField(
            model_name='simplemailconfig',
            name='logo',
            field=models.ImageField(blank=True, null=True, storage=django.core.files.storage.FileSystemStorage(), upload_to='simple_mail', verbose_name='Logo'),
        ),
    ]
@spacecodeit spacecodeit changed the title Missing Migartion Missing Migration Sep 27, 2022
@bioworkflows
Copy link

I counter the same issue here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants