summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/ddl.py
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2019-01-12 23:22:47 +0000
committerGerrit Code Review <gerrit@bbpush.zzzcomputing.com>2019-01-12 23:22:47 +0000
commit8138e70d63216381b9b3cb7a64750a3add154ec6 (patch)
treeee798a4a4851af4431d738bce0c1b99b6b8267c7 /lib/sqlalchemy/sql/ddl.py
parent55f930ef3d4e60bed02a2dad16e331fe42cfd12b (diff)
parenta6094d6682c956ce8a77fbec2a2700f901f3e75e (diff)
downloadsqlalchemy-8138e70d63216381b9b3cb7a64750a3add154ec6.tar.gz
Merge "use ..deprecated directive w/ version in all cases"
Diffstat (limited to 'lib/sqlalchemy/sql/ddl.py')
-rw-r--r--lib/sqlalchemy/sql/ddl.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/sqlalchemy/sql/ddl.py b/lib/sqlalchemy/sql/ddl.py
index 4b1b50c51..4ad7f3e58 100644
--- a/lib/sqlalchemy/sql/ddl.py
+++ b/lib/sqlalchemy/sql/ddl.py
@@ -103,8 +103,10 @@ class DDLElement(Executable, _DDLCompiles):
@util.deprecated(
"0.7",
- "See :class:`.DDLEvents`, as well as "
- ":meth:`.DDLElement.execute_if`.",
+ "The :meth:`.DDLElement.execute_at` method is deprecated and will "
+ "be removed in a future release. Please use the :class:`.DDLEvents` "
+ "listener interface in conjunction with the "
+ ":meth:`.DDLElement.execute_if` method."
)
def execute_at(self, event_name, target):
"""Link execution of this DDL to the DDL lifecycle of a SchemaItem.
@@ -328,8 +330,12 @@ class DDL(DDLElement):
SQL bind parameters are not available in DDL statements.
:param on:
+
.. deprecated:: 0.7
- See :meth:`.DDLElement.execute_if`.
+
+ The :paramref:`.DDL.on` parameter is deprecated and will be
+ removed in a future release. Please refer to
+ :meth:`.DDLElement.execute_if`.
Optional filtering criteria. May be a string, tuple or a callable
predicate. If a string, it will be compared to the name of the