Changes between Initial Version and Version 1 of Ticket #30670, comment 6
- Timestamp:
- Aug 2, 2019, 12:14:07 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #30670, comment 6
initial v1 2 2 > `SchemaEditor` supports `add_constraint()` and `remove_constraint()` operations for [https://docs.djangoproject.com/en/2.2/ref/models/constraints/ Meta.constraints] manipulation. 3 3 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?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**?