#34253: migrations don't apply
-------------------------------+--------------------------------------
     Reporter:  kamikaze       |                    Owner:  nobody
         Type:  Bug            |                   Status:  closed
    Component:  Uncategorized  |                  Version:  4.1
     Severity:  Normal         |               Resolution:  invalid
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------
Changes (by kamikaze):

 * component:  Migrations => Uncategorized


Old description:

> {{{
> # Generated by Django 4.1.5 on 2023-01-12 01:57
>
> from django.db import migrations, models
>

> class Migration(migrations.Migration):
>
>     dependencies = [
>         ('myApp', '0001_initial'),
>     ]
>
>     operations = [
>         migrations.AlterField(
>             model_name='report49',
>             name='d29',
>             field=models.IntegerField(default=1),
>         ),
>     ]
>
> }}}
>
> there is no such migration applied yet, but sqlmigrate shows:
>
> {{{
>
> BEGIN;
> --
> -- Alter field d29 on report49
> --
> -- (no-op)
> COMMIT;
>
> }}}

New description:

 {{{
 # Generated by Django 4.1.5 on 2023-01-12 01:57

 from django.db import migrations, models


 class Migration(migrations.Migration):

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

     operations = [
         migrations.AlterField(
             model_name='report49',
             name='d29',
             field=models.IntegerField(default=1),
         ),
     ]

 }}}

 there is no such migration applied yet, but sqlmigrate shows:

 {{{

 BEGIN;
 --
 -- Alter field d29 on report49
 --
 -- (no-op)
 COMMIT;

 }}}

 Initial migration didn't set any defaults as well

--

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34253#comment:2>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070185a35caee1-2f98539a-4f1c-41a7-b889-908a65af6732-000000%40eu-central-1.amazonses.com.

Reply via email to