Skip to content
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

Remove confusing and unused upgrade.php #694

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

Quetzacoalt91
Copy link
Member

Questions Answers
Description? When all files have been migrated from the core to this repository, a file upgrade.php should have been deleted. It is a duplicate from cli-upgrade.php and does not run an upgrade as intended. For instance, PS_VERSION_DB was only updated if the previous SQL requests have worked.
Type? bug fix
BC breaks? Yes, one file is deleted
Deprecations? Nope
Fixed ticket? /
Sponsor company @PrestaShopCorp
How to test? Additional testing is not requested, as the CLI should run via another endpoint.

@Quetzacoalt91 Quetzacoalt91 self-assigned this Apr 26, 2024
@Hlavtox
Copy link
Contributor

Hlavtox commented Apr 26, 2024

One question though - this file should be the one used for manual upgrade using browser, shouldn't we fix it instead? 🤔
https://devdocs.prestashop-project.org/8/basics/keeping-up-to-date/upgrade/#database-upgrade

@ga-devfront
Copy link
Contributor

One question though - this file should be the one used for manual upgrade using browser, shouldn't we fix it instead? 🤔 https://devdocs.prestashop-project.org/8/basics/keeping-up-to-date/upgrade/#database-upgrade

I think we have to update documentation because we don't need to use upgrade/upgrade.php but blob/dev/cli-upgrade.php instead. Tel me if I'm wrong.

Copy link
Contributor

@kpodemski kpodemski left a comment

Choose a reason for hiding this comment

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

Please remember to update the docs accordingly following the merge of this PR 👍🏻

@PrestaShop/qa-functional I don't think it requires any tests.

@Quetzacoalt91
Copy link
Member Author

@Quetzacoalt91
Copy link
Member Author

I allow myself to merge this PR, as this does not require a check from the QA team. Thanks for your reviews.

@Quetzacoalt91 Quetzacoalt91 merged commit 984d161 into PrestaShop:dev Apr 30, 2024
29 checks passed
@Quetzacoalt91 Quetzacoalt91 deleted the delete-upgrade.php branch April 30, 2024 15:10
@matks matks added this to the 5.0.2 milestone Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
7 participants