diff options
author | CaselIT <cfederico87@gmail.com> | 2021-12-28 22:15:32 +0100 |
---|---|---|
committer | CaselIT <cfederico87@gmail.com> | 2021-12-29 21:18:26 +0100 |
commit | 270702253ecb78f7f3e3d920169ab160f8469904 (patch) | |
tree | 632421563d5041f41d67470e5a7f0a7e04377224 | |
parent | 1364bbf9b782178cad66ca22783dde1ba8353fde (diff) | |
download | alembic-270702253ecb78f7f3e3d920169ab160f8469904.tar.gz |
Remove warning regarding cache key when using MSSQL.
Change-Id: I5eacf7c2030d8dbdaf1e5d2eba836a7596365ae3
-rw-r--r-- | alembic/ddl/mssql.py | 4 | ||||
-rw-r--r-- | docs/build/unreleased/cache_warning.rst | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/alembic/ddl/mssql.py b/alembic/ddl/mssql.py index 9e1ef76..ff75694 100644 --- a/alembic/ddl/mssql.py +++ b/alembic/ddl/mssql.py @@ -255,6 +255,8 @@ class MSSQLImpl(DefaultImpl): class _ExecDropConstraint(Executable, ClauseElement): + inherit_cache = False + def __init__( self, tname: str, @@ -269,6 +271,8 @@ class _ExecDropConstraint(Executable, ClauseElement): class _ExecDropFKConstraint(Executable, ClauseElement): + inherit_cache = False + def __init__( self, tname: str, colname: "Column", schema: Optional[str] ) -> None: diff --git a/docs/build/unreleased/cache_warning.rst b/docs/build/unreleased/cache_warning.rst new file mode 100644 index 0000000..19abad1 --- /dev/null +++ b/docs/build/unreleased/cache_warning.rst @@ -0,0 +1,5 @@ +.. change:: + :tags: mssql + + Removed a warning raised by SQLAlchemy when dropping constraints + on MSSQL regarding statement caching. |