From 88b920bc630c5d46cad6bab0c4cf9905856f16a9 Mon Sep 17 00:00:00 2001 From: Sergey Golitsynskiy Date: Sat, 16 Oct 2021 03:53:04 -0400 Subject: [PATCH] Add missing note: bind arg will be required in 2.0 (#7195) Applies to Index.create() and Index.drop() --- lib/sqlalchemy/sql/schema.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/sqlalchemy/sql/schema.py b/lib/sqlalchemy/sql/schema.py index 121ba59ac9..25c676bd83 100644 --- a/lib/sqlalchemy/sql/schema.py +++ b/lib/sqlalchemy/sql/schema.py @@ -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`. -- 2.47.3