Semver-based migrations
- Put migrations into a separate file: migrations.js - Add semver, for more specific version-based migrations. - Change `state.saved.version` to semver app version.
This commit is contained in:
@@ -93,7 +93,7 @@ function getDefaultPlayState () {
|
||||
/* If the saved state file doesn't exist yet, here's what we use instead */
|
||||
function getDefaultSavedState () {
|
||||
return {
|
||||
version: 1, /* make sure we can upgrade gracefully later */
|
||||
version: config.APP_VERSION, /* make sure we can upgrade gracefully later */
|
||||
torrents: [
|
||||
{
|
||||
status: 'paused',
|
||||
|
||||
Reference in New Issue
Block a user