]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Add missing note: bind arg will be required in 2.0 (#7195)
authorSergey Golitsynskiy <sgolitsynskiy@gmail.com>
Sat, 16 Oct 2021 07:53:04 +0000 (03:53 -0400)
committerGitHub <noreply@github.com>
Sat, 16 Oct 2021 07:53:04 +0000 (09:53 +0200)
Applies to Index.create() and Index.drop()

lib/sqlalchemy/sql/schema.py

index 121ba59ac92e3bec79b1c2eefaf4e1cf29218dfe..25c676bd83f37e80ce5b52234ec70f62171c3faf 100644 (file)
@@ -4195,6 +4195,9 @@ class Index(DialectKWArgs, ColumnCollectionMixin, SchemaItem):
         :class:`.Index`, using the given :class:`.Connectable`
         for connectivity.
 
+        .. note:: the "bind" argument will be required in
+           SQLAlchemy 2.0.
+
         .. seealso::
 
             :meth:`_schema.MetaData.create_all`.
@@ -4210,6 +4213,9 @@ class Index(DialectKWArgs, ColumnCollectionMixin, SchemaItem):
         :class:`.Index`, using the given :class:`.Connectable`
         for connectivity.
 
+        .. note:: the "bind" argument will be required in
+           SQLAlchemy 2.0.
+
         .. seealso::
 
             :meth:`_schema.MetaData.drop_all`.