Skip to content

Add new type column on cart_rule_product_rule_group table#1446

Merged
Quetzacoalt91 merged 1 commit intoPrestaShop:devfrom
jolelievre:discount-product-rule-group-type
Sep 17, 2025
Merged

Add new type column on cart_rule_product_rule_group table#1446
Quetzacoalt91 merged 1 commit intoPrestaShop:devfrom
jolelievre:discount-product-rule-group-type

Conversation

@jolelievre
Copy link
Contributor

Questions Answers
Description? Add new type column on cart_rule_product_rule_group table
Type? new feature
BC breaks? no
Deprecations? no
Fixed ticket? ~
Sponsor company ~
How to test? Upgrade from a lower version to 9.1.0, the table cart_rule_product_rule_group should contain a new enum column, all existing rows have the default value at_least_one_product_rule

Related PR from the core:
PrestaShop/PrestaShop#39418

@sonarqubecloud
Copy link

@jolelievre jolelievre marked this pull request as draft August 26, 2025 07:45
@jolelievre
Copy link
Contributor Author

I leave it as a draft until the core PR is merged

@Quetzacoalt91 Quetzacoalt91 marked this pull request as ready for review August 29, 2025 09:38
@Quetzacoalt91 Quetzacoalt91 added the enhancement Type: Improvement label Aug 29, 2025
@AureRita AureRita self-assigned this Sep 9, 2025
@AureRita
Copy link
Contributor

Hello @jolelievre

Thank you for your PR, I tested it and I have this result :

image

If I read well, you want a enum column, currently we have a new row type with info : "enum" and the default value wanted "at_least_one_product_rule". For me it's not what we want to have.

Waiting for your feeback

@AureRita AureRita moved this from Ready for review to Waiting for author in PR Dashboard Sep 16, 2025
@jolelievre
Copy link
Contributor Author

@AureRita what you describe, what you show, and what is in the description all seem to be in sync to me 🤔
So I don't understand what the problem is for you?

@AureRita
Copy link
Contributor

@jolelievre For me, there is a reversal between the columns and rows according to the description.

If that's how it has to be for you, I'll approve the PR.

Waiting for your feedback to approve it (a 👍 works for me)

@Touxten
Copy link
Contributor

Touxten commented Sep 16, 2025

Hello @AureRita

You have to check when you open the table.
Here you check the database structure.

@Quetzacoalt91
Copy link
Member

Quetzacoalt91 commented Sep 16, 2025

@Touxten you can see from the screenshot that the structure has been checked.

@AureRita when opening the structure of a database table, columns are displayed as lines. The description from Jo is q bit confusing but you should have a "column" called type, with the following type: enum(...)

@Touxten
Copy link
Contributor

Touxten commented Sep 16, 2025

I see my english is bad :)

Je voulais dire vous devez ouvrir la table et vérifier que la nouvelle colonne à bien la même valeur par défaut pour toutes les entrées.

@Quetzacoalt91
Copy link
Member

Nah sorry I misread your message, it was clear. 👍

Copy link
Contributor

@AureRita AureRita left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @jolelievre

Thank you for your PR, I tested it and it seems to works as you can see :

image

Tested from :
8.0.4 to 9.1.0(develop)

Because the PR seems to works as expected, It's QA ✔️

Thank you

@AureRita AureRita added QA ✔️ Status: Check done, Code approved and removed waiting for author labels Sep 17, 2025
@Quetzacoalt91 Quetzacoalt91 added this to the 7.5.0 milestone Sep 17, 2025
@Quetzacoalt91 Quetzacoalt91 merged commit 645bec7 into PrestaShop:dev Sep 17, 2025
83 of 90 checks passed
@github-project-automation github-project-automation bot moved this from Waiting for author to Merged in PR Dashboard Sep 17, 2025
@ps-jarvis ps-jarvis moved this from Merged to Waiting for author in PR Dashboard Sep 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Type: Improvement QA ✔️ Status: Check done, Code approved

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants