#31653: Add PostgreSQL operations to add constraints via NOT VALID / VALIDATE
CONSTRAINT
-------------------------------------+-------------------------------------
     Reporter:  Adam (Chainz)        |                    Owner:  nobody
  Johnson                            |
         Type:                       |                   Status:  new
  Cleanup/optimization               |
    Component:  contrib.postgres     |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Sanskar Jaiswal):

 I'd like to work on this ticket. I was thinking of adding an
 `add_constraint()` in
 `db.backends.postgresql.schema.DatabaseSchemaEditor`, which could modify
 the sql returned by calling `constraint.create_sql(model, self)` to have
 the `NOT VALID` clause as well. This could be then used by the custom
 operations, that'll be defined in `contrib.postgres.operations`. Does this
 work or is my approach missing something here?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31653#comment:9>
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/068.471378689e972f618621601b5e34c7c5%40djangoproject.com.

Reply via email to