-
Notifications
You must be signed in to change notification settings - Fork 19
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
upgrade script silently fails, but always returns "success" #61
Comments
OK, now I have identified the culprit in the upgrade script:
was very slow on 188k+ rows and it timeouted. However, the upgrade script does not say anything, even if it receives back 500 error code (or the AJAX/XHR request timeouts and never returns anything). Therefore user is unaware of the db upgrade fail and thinks everything upgraded fine. |
Solution suggested here: Also:
should be run before the ALTER statement. I think this could fix your upgrade script to perform better and not timeout. |
The upgrade script is very error prone:
https://github.com/PromInc/organic-search-analytics/blob/master/organic-search-analytics/upgrade.php
as it always returns:
even when error was encountered in the MySQL query.
This is definitely not, how it should behave - specially, since you are suggesting in the multiple issues to run all the upgrade scripts. And people will do and everything will be successful ...or rather not.
Since the script silently fails, but returns success, there is now way to find out if the database tables were upgraded/altered or not.
The text was updated successfully, but these errors were encountered: