Changes between Initial Version and Version 1 of Ticket #30670, comment 6


Ignore:
Timestamp:
Aug 2, 2019, 12:14:07 AM (5 years ago)
Author:
Akash Agrawal

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30670, comment 6

    initial v1  
    22> `SchemaEditor` supports `add_constraint()` and `remove_constraint()` operations for [https://docs.djangoproject.com/en/2.2/ref/models/constraints/ Meta.constraints] manipulation.
    33
    4 I just went through the code for  [https://github.com/django/django/blob/master/django/db/backends/base/schema.py#L347 add constraint] and  [https://github.com/django/django/blob/master/django/db/backends/base/schema.py#L353 delete constraint] in schema editor and the comment in the function says that it adds/deletes a check constraint. What about unique together constraint?
     4I just went through the code for  [https://github.com/django/django/blob/master/django/db/backends/base/schema.py#L347 add constraint] and  [https://github.com/django/django/blob/master/django/db/backends/base/schema.py#L353 delete constraint] in schema editor and the comment in the function says that it adds/deletes a **check constraint**. What about **unique together constraint**?
Back to Top