#21896: makemigrations warning "trying to add a non-nullable field" is raised
even
when the table is empty
-------------------------------------+-------------------------------------
Reporter: kunitoki | Owner:
Type: | Status: closed
Cleanup/optimization | Version:
Component: Migrations | 1.7-alpha-1
Severity: Normal | Resolution: invalid
Keywords: migrations | Triage Stage:
Has patch: 0 | Unreviewed
Needs tests: 0 | Needs documentation: 0
Easy pickings: 0 | Patch needs improvement: 0
| UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by andrewgodwin):
* status: new => closed
* resolution: => invalid
Comment:
We don't know what size the table might be in the future, so we have to
raise this during ``makemigrations``; you might make the migration on a
dev box with no entries and then run it on a production box with millions
of rows, so it has to stay. Marking INVALID.
--
Ticket URL: <https://code.djangoproject.com/ticket/21896#comment:3>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/066.525c834c01b8150ec744e129d47126bd%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.