#35047: Wrong sql query for migration
----------------------------+--------------------------------------
     Reporter:  mgoldenbe   |                    Owner:  nobody
         Type:  Bug         |                   Status:  closed
    Component:  Migrations  |                  Version:  3.2
     Severity:  Normal      |               Resolution:  invalid
     Keywords:  sqlmigrate  |             Triage Stage:  Unreviewed
    Has patch:  0           |      Needs documentation:  0
  Needs tests:  0           |  Patch needs improvement:  0
Easy pickings:  0           |                    UI/UX:  0
----------------------------+--------------------------------------
Changes (by Tim Graham):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 `Field.default` doesn't set a permanent default at the database level. In
 this case, it is set temporarily to populate existing rows. To use a
 permanent database default, use
 
[https://docs.djangoproject.com/en/stable/ref/models/fields/#django.db.models.Field.db_default
 Field.db_default] (new in Django 5.0).

-- 
Ticket URL: <https://code.djangoproject.com/ticket/35047#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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018c7cbf166a-1f2a35ed-9f4d-433a-803b-30bbfc5fc12f-000000%40eu-central-1.amazonses.com.

Reply via email to