]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
Removed force parameter from base.py
authorParth Shandilya <parth1989shandilya@gmail.com>
Mon, 4 Feb 2019 19:26:48 +0000 (14:26 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 20 Feb 2019 23:47:06 +0000 (18:47 -0500)
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

alembic/ddl/base.py
docs/build/unreleased/528.rst [new file with mode: 0644]

index 9bdb0bef37bcde5ee18137ebbb3f0d165ba16175..90573cf5de7a3de2330cf49cd0a8590339c82371 100644 (file)
@@ -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 (file)
index 0000000..91d0e35
--- /dev/null
@@ -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