
The "force" parameter in SQLAlchemy IdentifierPreparer.quote()
has been a no-op since 0.9 in
031ef08078
,
which was six years ago. In SQLAlchemy 1.3 this parameter
will be removed entirely. Bump requirements to 0.9 series
here and remove usage of the "force" flag.
Change-Id: I4492df2e7d2075fefbf13d6782de11f7d402f6b8
11 lines
277 B
Python
11 lines
277 B
Python
from migrate.changeset import SQLA_10
|
|
|
|
|
|
def fk_column_names(constraint):
|
|
if SQLA_10:
|
|
return [
|
|
constraint.columns[key].name for key in constraint.column_keys]
|
|
else:
|
|
return [
|
|
element.parent.name for element in constraint.elements]
|