Skip to content
Commit 977c002b authored by Jerome Guidon's avatar Jerome Guidon Committed by Nate Graham
Browse files

Standardize the database upgrade mechanism

Summary:
This patch is aim to standardize the upgrade mechanism which is currently in the method DatabaseInterface::initDatabase.
The idea is to avoid taking care about the upgrade logic when creating new versions.

On a new version XX, the steps would be the following:
  1-create the method DatabaseInterface::upgradeDatabaseVXX
  2-add the version to the enum DatabaseInterface::DatabaseVersion
  3-add upgradeDatabaseVXX to the switch-cas in callUpgradeFunctionForVersion

Added mechanism for upgrade the database
Add integration for versions V9 -> V14
Added drop request for the unused tables

Reviewers: #elisa, mgallien, ngraham, astippich

Reviewed By: #elisa, mgallien

Differential Revision: https://phabricator.kde.org/D24563
parent 2b95d068
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment