I am encountering the same in #108 . The __internal__.migrations.version
always is 8.1.01
from electron-store
instead of my project. I have to resort to the workaround by add projectVersion
to get the right version:
const store = new Store({
projectVersion: app.getVersion(),
schema,
beforeEachMigration: (store, context) => {
console.log(
`[main-config] migrate from ${context.fromVersion} β ${context.toVersion}`,
)
},
migrations: {
'<1.2.2': (store) => {
console.log('[<1.2.2]')
},
'>=1.2.2': (store) => {
// ...
},
'>=1.2.3': (store) => {
console.log('[>=1.2.3]')
},
},
})
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too