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

Fail when the codebase version is older than the Piwik database schema version #6829

Closed
mattab opened this issue Dec 9, 2014 · 2 comments
Closed
Assignees
Labels
Milestone

Comments

@mattab
Copy link
Member

@mattab mattab commented Dec 9, 2014

Follows up #6815 which was a bug triggered by the fact that Piwik codebase 2.8.0 was running with a database schema of 2.9.1 causing invalid data to be inserted in the database.

Maybe when Piwik codebase is running an older version than the Schema version, we fail, to prevent such bugs from occurring.

@mattab mattab added the Task label Dec 9, 2014
@mattab

This comment has been minimized.

Copy link
Member Author

@mattab mattab commented Dec 9, 2014

In case really wants to run the old codebase with the new schema, we could write a message explaining that there are risks to damage the database but it is possible to disable the error message by executing the command UPDATE piwik_version SET option_name = {old_version} WHERE option_value='core_version';

@mattab mattab self-assigned this Dec 15, 2014
@mattab

This comment has been minimized.

Copy link
Member Author

@mattab mattab commented Dec 15, 2014

Here is what it looks like: codebase running older than database

mattab referenced this issue Dec 15, 2014
…prevent broken race conditions
@mattab mattab closed this Dec 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.