#23416: Django 1.7 fails to output a CHECK constraint on PositiveIntegerFields
using postgres backend
-------------------------------------+-------------------------------------
     Reporter:  ris                  |      Owner:  nobody
         Type:  Bug                  |     Status:  new
    Component:  Database layer       |    Version:  1.7
  (models, ORM)                      |   Keywords:  postgres check
     Severity:  Normal               |  constraint positiveintegerfield
 Triage Stage:  Unreviewed           |  Has patch:  0
Easy pickings:  0                    |      UI/UX:  0
-------------------------------------+-------------------------------------
 As title says.

 In models.py:

 {{{
     maximum_percentage = models.PositiveIntegerField ( null = True , blank
 = True )
 }}}

 sqlall line from django 1.6:

 {{{
     "maximum_percentage" integer CHECK ("maximum_percentage" >= 0),
 }}}

 sqlall line from django 1.7:

 {{{
     "maximum_percentage" integer,
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/23416>
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/046.4051ff1fbb237201573f76296a87908a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to