-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
TASK: Remove duplicate index #27
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am very sure the "properly named index" should be kept. No clue (yet) where the other comes from!
Ok, but the other one has a additional unique constaint. |
This is where the index (should) come from redirecthandler-databasestorage/Classes/Domain/Model/Redirect.php Lines 28 to 33 in 4d17a80
|
The migration only the the named one… Do you know where the index comes from? Is it implicitly created? |
It seems to come from the migration only: |
Ah, so this is the cause:
|
Yes, seems so. Removig it creates a migration for removing the |
Ok, if you fix the platform comparison and remove the no longer needed index definition from |
Question is, if we can remove the unique constraint too? Or if it makes to move it to the other index? |
No, that one is built from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀 by 📚
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost missed it: please do this for PostgreSQL, too!
Postgres migration is also added. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀 by 📚
This migration removes the index
sourceuripathhash
as it is a dpulicate of the indexflow_identity_neos_redirecthandler_databasestorage_domain_60892
.This is not necessary and leads to unwanted change requests in database migration generation (#9).
See also: