Index creation with if_not_exists
not supported for SQLAlchemy 1.4.49
#1323
Labels
op directives
PRs (with tests!) welcome
use case
not quite a feature and not quite a bug, something we just didn't think of
Describe the bug
Index creation with
if_not_exists
is not supported for SQLAlchemy 1.4.xExpected behavior
It should be possible to specify
if_not_exists
when creating an index and using SQLAlchemy version that supports it.To Reproduce
Error
Versions.
Additional context
Is it really so that SQLAlchemy 1.4.x does not support this? At least checking the source it looks like it does.
Commenting out this check seems to work just fine and I can see the following part of the statement generated correctly:
Should the requirements be lowered and allow SQLAlchemy version that does support this feature? I have seen some constants available that check for other SQLAlchemy versions, so should be pretty straightforward to support this, unless there a reason not to.
I don't think we will migrate to 2.0 soon and it would be great to have this feature around.
Have a nice day!
The text was updated successfully, but these errors were encountered: