From: Parth Shandilya Date: Mon, 4 Feb 2019 19:26:48 +0000 (-0500) Subject: Removed force parameter from base.py X-Git-Tag: rel_1_0_8~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbe03002705981526e5489ae1f2505bdd7327082;p=thirdparty%2Fsqlalchemy%2Falembic.git Removed force parameter from base.py Removed use of deprecated ``force`` parameter for SQLAlchemy quoting functions as this parameter will be removed in a future release. Pull request courtesy Parth Shandilya(ParthS007). Fixes: #528 Closes: #532 Pull-request: https://github.com/sqlalchemy/alembic/pull/532 Pull-request-sha: 61ce70217527ab67395fa90ebaf4631837b3fe5a Change-Id: I93b2a0697366b9c0f95338e134d032aaf32c7130 --- diff --git a/alembic/ddl/base.py b/alembic/ddl/base.py index 9bdb0bef..90573cf5 100644 --- a/alembic/ddl/base.py +++ b/alembic/ddl/base.py @@ -176,7 +176,7 @@ def quote_dotted(name, quote): def format_table_name(compiler, name, schema): - quote = functools.partial(compiler.preparer.quote, force=None) + quote = functools.partial(compiler.preparer.quote) if schema: return quote_dotted(schema, quote) + "." + quote(name) else: @@ -184,7 +184,7 @@ def format_table_name(compiler, name, schema): def format_column_name(compiler, name): - return compiler.preparer.quote(name, None) + return compiler.preparer.quote(name) def format_server_default(compiler, default): diff --git a/docs/build/unreleased/528.rst b/docs/build/unreleased/528.rst new file mode 100644 index 00000000..91d0e351 --- /dev/null +++ b/docs/build/unreleased/528.rst @@ -0,0 +1,7 @@ +.. change:: + :tags: bug, operations + :tickets: 528 + + Removed use of deprecated ``force`` parameter for SQLAlchemy quoting + functions as this parameter will be removed in a future release. + Pull request courtesy Parth Shandilya(ParthS007). \ No newline at end of file