#470: Add Field.db_default for defining database defaults
-------------------------------------+-------------------------------------
     Reporter:  jws                  |                    Owner:  Ian Foote
         Type:  New feature          |                   Status:  assigned
    Component:  Database layer       |                  Version:
  (models, ORM)                      |
     Severity:  normal               |               Resolution:
     Keywords:  sql schema           |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  1
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Description changed by Anders Hovmöller:

Old description:

> Apply this diff to django/core/mamagement.py
>
> Should work on any database.
>
> 75a76,77
> >                 if f.default <> meta.fields.NOT_PROVIDED:
> >                     field_output.append("DEFAULT '%s'" % (f.default,))

New description:

 https://github.com/django/django/pull/13709

 Apply this diff to django/core/mamagement.py

 Should work on any database.

 75a76,77
 >                 if f.default <> meta.fields.NOT_PROVIDED:
 >                     field_output.append("DEFAULT '%s'" % (f.default,))

--

-- 
Ticket URL: <https://code.djangoproject.com/ticket/470#comment:42>
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/061.e2c867e85f48280d25bc160e80ad2436%40djangoproject.com.

Reply via email to