biotinker / LibreTasks

An updated form of Omnidroid
Apache License 2.0
82 stars 22 forks source link

Power off action unavailable when migrating from a previous version #224

Closed mvglasow closed 6 years ago

mvglasow commented 7 years ago

https://github.com/biotinker/LibreTasks/commit/3e11fab17c7ce0854a8647c0f2cef6374655c9e3 introduces a new Power Off action. However, the action is registered in DbMigration#initialVersion() rather than in a method called from DbMigration#migrateToLatest(), and the db version doesn’t get bumped. As a result, the new entry will be added to a fresh DB but not to a DB migrated from an earlier version.

I’ll look into this (should be pretty straightforward) and submit a merge request.

mvglasow commented 7 years ago

Merge request has been submitted, see above.