Prepare change of index with pre-deletion of duplicates in image_type table#1494
Merged
Quetzacoalt91 merged 2 commits intoPrestaShop:devfrom Oct 20, 2025
Merged
Conversation
8745ed6 to
c18a24e
Compare
Member
Author
|
We've released these changes with Update Assistant 7.4.2, even though alerts are detected about this change now. This is caused by the SQL engine we use locally which is different (Maria 10 vs MySQL 5.7 here), and the time the CI ran. On the branch 7.4.x, PrestaShop 9.0.1 was not released yet so we did not detect the issue, while the PR for the |
b2c93e2 to
518d626
Compare
|
Member
Author
|
Backport from branch 7.4.x. Merging |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



How to test
From an updated shop on PrestaShop v9.0.0
Case 1: Hummingbird is active during the update
Prerequisites:
Expected result: You keep all the images type details as they were before the update. Only the column
theme_nameis deleted.Case 2: Hummingbird is active during the update
Prerequisites:
Expected result: You keep the images type details that were assigned to hummingbird (IDs 8 to 23). The column
theme_nameis deleted.Case 3: Classic is active during the update
Prerequisites:
Expected result: You keep the images type details that were assigned to classic (IDs 24 to 30). The column
theme_nameis deleted.Case 4: In a multishop context, Classic is active on the shop 1 and Hummingbird is on the shop 2
Prerequisites:
Expected result: You keep the images type details that were assigned to classic AND hummingbird. If two lines share the same name, only the one with the highest ID is kept (IDs 15 to 30). The column
theme_nameis deleted.