#32805: makemigrations seems to generate an unnecessary AlterField
---------------------------------+--------------------------------------
     Reporter:  Matthew Cornell  |                    Owner:  nobody
         Type:  Uncategorized    |                   Status:  closed
    Component:  Migrations       |                  Version:  3.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
---------------------------------+--------------------------------------

Comment (by Matthew Cornell):

 Thank you. Apologies.

 Replying to [comment:2 Mariusz Felisiak]:
 > Please don't use Trac as a support channel, this is a manually created
 migration. To avoid creation of `0018_auto_20210601_0946.py​` you can
 change the `AlterField` to the:
 > {{{
 >         migrations.AlterField(
 >             model_name='forecast',
 >             name='issued_at',
 >             field=models.DateTimeField(db_index=True),
 >         ),
 > }}}
 >
 > `default=None` is not the same as not providing a default.
 >
 > Closing per TicketClosingReasons/UseSupportChannels.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32805#comment:4>
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/072.bf15835df3b2bf7316a44a577178cfc6%40djangoproject.com.

Reply via email to