Skip to content

Autogenerate ignores order of columns in an index #1166

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
CaselIT opened this issue Feb 5, 2023 · 1 comment
Closed

Autogenerate ignores order of columns in an index #1166

CaselIT opened this issue Feb 5, 2023 · 1 comment
Labels
autogenerate - detection bug Something isn't working

Comments

@CaselIT
Copy link
Member

CaselIT commented Feb 5, 2023

For the autogenrated the following indexes where considered equal, while in general they aren't

Index('my_index', 'a', 'b')
Index('my_idnex', 'b', 'a')
@CaselIT CaselIT added bug Something isn't working autogenerate - detection labels Feb 5, 2023
@sqla-tester
Copy link
Collaborator

CaselIT has proposed a fix for this issue in the main branch:

Improved support for expression indexes https://gerrit.sqlalchemy.org/c/sqlalchemy/alembic/+/4426

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autogenerate - detection bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants