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
Regarding 33047 - Issue with missing id_employee in ps_order_payment table #33108
Comments
Hello @Johnnyx2010 , Could you specify the exact version of PrestaShop before your upgrade ? The previous issue was closed because it couldn't be reproduced : #33047 (comment) Waiting for your feedback^^ |
its ps 1.7.8.9. |
It's a recent update of the structure. It does not exist before 8.1 @okom3pom said "Don't forget autoupgrade."
It is an issue with autoupgrade who doesn't update this table. |
Hello, Thanks for reporting this issue! Thanks in advance! |
I can confirm this issue. |
@MatShir @RosaBenouamer @Zoefinders @fabienvallon The important, easy solvable issue for the |
I add the following Bug that was closed that is associated with the same problem: By having an initial state checking boxes where it is reported that it was paid, it throws an error 500. In addition to adding a payment in orders orders. It fails to add the payment and the ps_order_payment table fails to insert rows. Please check if they are independent issues and leave the Bug that I reported as a duplicate. |
You have to do that or ask someone or wait the update. |
Thanks a lot, it worked ! |
Thanks, if it worked with the change. Does this change not affect future updates where prestashop includes this field? |
Same problem here, ok that just add the column and it works, but the point of this column? |
when payment is added from orders, it shows the employee who made the deposit. |
Issue will be resolved after release of new version of autoupgrade module. ALTER TABLE `ps_order_payment` ADD `id_employee` INT NULL AFTER `date_add`; |
Prerequisites
Describe the bug and add attachments
I'm logging this here as it was previously logged at 33047. However its unclear was this ticket closed due the poster finding a solution via a manual entry in the db or was this logged as a fix todo at the upgrade level.
On a PS 1.7 there is no id_employee field. So when we upgrade to ps8 this field isn't present. This field needs to be part of the upgrade script as is important as third party modules can use this table.
Expected behavior
id_employee to be added on ps_order_payment table via an upgrade script from 1.7 to PS 8
Steps to reproduce
Upgrade existing PS 1.7 to PS 8 - check for the id_employee field its missing in ps_order_payment table. Clean install of PS8 has this field in the table
PrestaShop version(s) where the bug happened
8
PHP version(s) where the bug happened
8.1
If your bug is related to a module, specify its name and its version
upgrade script
Your company or customer's name goes here (if applicable).
NA
The text was updated successfully, but these errors were encountered: