#23416: Django 1.7 fails to output a CHECK constraint on PositiveIntegerFields using postgres backend -------------------------------------+------------------------------------- Reporter: ris | Owner: nobody Type: Bug | Status: closed Component: Database layer | Version: 1.7 (models, ORM) | Resolution: fixed Severity: Release blocker | Triage Stage: Ready for Keywords: postgres check | checkin constraint positiveintegerfield | Needs documentation: 0 Has patch: 1 | Patch needs improvement: 0 Needs tests: 0 | UI/UX: 0 Easy pickings: 0 | -------------------------------------+-------------------------------------
Comment (by Marc Tamlyn <marc.tamlyn@…>): In [changeset:"48e10710074a06584b6f8331a6e74492be5acf18"]: {{{ #!CommitTicketReference repository="" revision="48e10710074a06584b6f8331a6e74492be5acf18" [1.7.x] Fixed #23416 -- Make sure DatabaseCreation respects checks. Migrations respected Field.db_parameters()['check'], but DatabaseCreation was still using just Field.db_type(). Backport of 14c8456 from master }}} -- Ticket URL: <https://code.djangoproject.com/ticket/23416#comment:5> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/061.eaa1c066022ff56345c7eacefbb5976c%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.