summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2017-02-20 16:54:07 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2017-02-22 17:07:15 -0500
commit01db0381184a82cad784d6e03739a00fe45add44 (patch)
treecef286d1ebf0c0b33572685cc56ac8d58ca9be99 /docs
parent62f2739e828a8fa31cfa955003acc44c9d042712 (diff)
downloadalembic-01db0381184a82cad784d6e03739a00fe45add44.tar.gz
Add ExcludeConstraint support for Postgresql
Add full support for Postgresql add_exclude_constraint(). This opens up more of the operations API and serves as a model for other dialect-specific constraints. Additionally, gracefully degrade if a given constraint class is not supported with a warning. Fixes: #412 Change-Id: I0fb89c840518aaeae97929919356f944479bc756
Diffstat (limited to 'docs')
-rw-r--r--docs/build/autogenerate.rst6
-rw-r--r--docs/build/changelog.rst15
2 files changed, 19 insertions, 2 deletions
diff --git a/docs/build/autogenerate.rst b/docs/build/autogenerate.rst
index d0fce8a..d1ae069 100644
--- a/docs/build/autogenerate.rst
+++ b/docs/build/autogenerate.rst
@@ -174,8 +174,10 @@ Autogenerate **can not detect**:
Autogenerate can't currently, but **will eventually detect**:
-* Some free-standing constraint additions and removals,
- like CHECK, PRIMARY KEY - these are not fully implemented.
+* Some free-standing constraint additions and removals may not be supported,
+ including PRIMARY KEY, EXCLUDE, CHECK; these are not necessarily implemented
+ within the autogenerate detection system and also may not be supported by
+ the supporting SQLAlchemy dialect.
* Sequence additions, removals - not yet implemented.
diff --git a/docs/build/changelog.rst b/docs/build/changelog.rst
index caf3f90..56c9143 100644
--- a/docs/build/changelog.rst
+++ b/docs/build/changelog.rst
@@ -26,6 +26,21 @@ Changelog
function can be used among other things to place a complete
:class:`.MigrationScript` structure in place.
+ .. change:: 412
+ :tags: feature, postgresql
+ :tickets: 412
+
+ Added support for Postgresql EXCLUDE constraints, including the
+ operation directive :meth:`.Operations.create_exclude_constraints`
+ as well as autogenerate render support for the ``ExcludeConstraint``
+ object as present in a ``Table``. Autogenerate detection for an EXCLUDE
+ constraint added or removed to/from an existing table is **not**
+ implemented as the SQLAlchemy Postgresql dialect does not yet support
+ reflection of EXCLUDE constraints.
+
+ Additionally, unknown constraint types now warn when
+ encountered within an autogenerate action rather than raise.
+
.. change:: fk_schema_compare
:tags: bug, operations