This is not a limitation this is just a bug in sqlalchemy,
being fixed by #12954. we dont have a system in place
to cross-check gerrits right now so just merge this and then
merge the SQLAlchemy fix
Change-Id: I9c074c0edb9f55d2400e59a9b2b02603458e8f0b
eq_(diffs, [])
+ @config.requirements.fk_names
def test_casing_convention_changed_so_put_drops_first(self):
m1 = MetaData()
m2 = MetaData()
["test2"],
"some_table",
["test"],
- name="MyFK" if config.requirements.fk_names.enabled else None,
+ name="MyFK",
)
self._assert_fk_diff(
@property
def fk_names(self):
- """foreign key constraints always have names in the DB"""
- return exclusions.fails_on("sqlite")
+ """backend can reflect foreign key names"""
+
+ # issue here was fixed in SQLAlchemy #12954 for sqlite, 2.0
+ # release
+ return exclusions.fails_if(
+ lambda config: not sqla_compat.sqla_2 and config.against("sqlite")
+ )
@property
def reflects_fk_options(self):