Turn off "Added support for autogenerate comparison of indexes on PostgreSQL which include SQL expressions" #1210
Replies: 1 comment 2 replies
-
Hi, Things should work correctly, the idea is that alembic does support function indexes, like any other index. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
From what I understood at the time, previously if I needed a function (lowercase) index with Postgres, I needed to add that manually. I did that in a revision and it worked, with warnings like
UserWarning: Skipping reflected expression-based index 'ix_zhsubtlexlookup_source_text_lower'
. Then I upgraded to alembic 1.10.0, and it appears it now tells me it's going to remove the indexes I added manually, before simply errorring out with:I thought I might be able to add the indexes but it continues to seem to want to ignore such indexes (i.e, if I add the index to the table definition it still completely ignores it, and I get the same error). I am assuming it is due to the following:
https://alembic.sqlalchemy.org/en/latest/changelog.html#change-477beffd1a8eb4fb324e68813c87bb7f
Am I correct in assuming that now alembic continues to not properly support function indexes on Postgres but doesn't allow having them done manually either? Is there any way around this apart from sticking to 1.9.4?
Beta Was this translation helpful? Give feedback.
All reactions