#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
---------------------------------+--------------------------------------
Changes (by Mariusz Felisiak):
* status: new => closed
* resolution: => invalid
* component: Database layer (models, ORM) => Migrations
Comment:
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: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/072.a4246ff1fe5d4cebafbc789dd5b0f771%40djangoproject.com.