-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Fix: deprecations in repair.php & Qual: Improve ... phpunit/setup_conf.sh #30825
Conversation
# Qual: Improve dev/setup/phpunit/setup_conf.sh - Use variables for credentials instead of repeating hardcoded values; - Add variables to configuration parameters; - Add prefix to tables; - Execute repair.php.
273ef7d
to
17f0b89
Compare
@eldy One seems to be an issue with deleting in an old upgrade script (see below), the others are not so obvious.
|
Yes, the repair can delete some tables but rule is only if table is no more used since several version (we try to keep temporary table content several version after migration to allow to fix of data if there was a bug in migration). |
Trying to help to improve the repair tool, another issue with accounting tables: |
Thanks for warning. Fixed in v20 branch. |
That's a good approach, but the DELETE is using accounting and the table is accouting... for one of the cases. |
All tables:
|
Here the table is |
Beurk. |
My pleasure. Note: our tables have prefix. The real names of our tables are So maybe a good approach recommended by @sonikf here #30686 (comment) is: Approach1: in case the data in the both tables are production data needed to keep: Aproach2: In case is no problem to loose the data of the accounting. |
Fix: deprecations in repair.php
repair.php was making calls to explode(string, null) (reported as deprecations by php).
Qual: Improve dev/setup/phpunit/setup_conf.sh