Delni / mercury

Mercury is the budget planner of the 21st century ! Based on Electron, it can be deployed in on virtually any OS
MIT License
129 stars 18 forks source link

Operation State Storage Wrong #17

Open MeikelLP opened 6 years ago

MeikelLP commented 6 years ago

Currently, the operations' state is stored via its font-awesome 4 icon name. This has to be changed to a generic state name like open.

Also, it's required to create a migration to change all existing data from an old database to the new format.

Because it's not possible to determine the version of a database file we need to create a table like version_history with column version (varchar) and insert every version of mercury when migrating to a new version. No version implies that an existing database is version 1.1 of Mercury.

To determine the latest applied version one needs to SELECT TOP 1 version FROM version_history (pseudo).