summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--AUTHORS1
-rw-r--r--docs/ref/schema-editor.txt18
2 files changed, 19 insertions, 0 deletions
diff --git a/AUTHORS b/AUTHORS
index 77947dcf45..ab06700192 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -27,6 +27,7 @@ answer newbie questions, and generally made Django that much better:
Ahmad Al-Ibrahim
Ahmed Eltawela <https://github.com/ahmedabt>
ajs <adi@sieker.info>
+ Akash Agrawal <akashrocksha@gmail.com>
Akis Kesoglou <akiskesoglou@gmail.com>
Aksel Ethem <aksel.ethem@gmail.com>
Akshesh Doshi <aksheshdoshi+django@gmail.com>
diff --git a/docs/ref/schema-editor.txt b/docs/ref/schema-editor.txt
index 1edbeb93af..20cd59ad6a 100644
--- a/docs/ref/schema-editor.txt
+++ b/docs/ref/schema-editor.txt
@@ -81,6 +81,24 @@ Adds ``index`` to ``model``’s table.
Removes ``index`` from ``model``’s table.
+``add_constraint()``
+--------------------
+
+.. method:: BaseDatabaseSchemaEditor.add_constraint(model, constraint)
+
+.. versionadded:: 2.2
+
+Adds ``constraint`` to ``model``'s table.
+
+``remove_constraint()``
+-----------------------
+
+.. method:: BaseDatabaseSchemaEditor.remove_constraint(model, constraint)
+
+.. versionadded:: 2.2
+
+Removes ``constraint`` from ``model``'s table.
+
``alter_unique_together()``
---------------------------