Migration
Initialization
Extension starts up
- follow until Reload Workspace
Run Migration
-
check semver versioin of previous workspace
-
gets all mgirations that were run since this point
- NOTE: this will not run 0.83.0 because its an older version
-
../packages/engine-server/src/workspace/service.ts (Private)
runMigrationsIfNecessary {
if shouldRunMigration {
changes = applyMigrationRules
return changes
}
}
shouldRunMigration {
workspaceInstallStatus == UPGRADED || force
}
Apply Migration
applyMigrationRules {
// currently determined by matching current workspace version with version of migration
migrationsToRun :=
changes = migratrionsToRun.forEach m => {
collectMigrationChanges(m)
}
if changes {
// apply changes
}
}
applyMigrationChanges {
// migration logic here
}
Migrations
0.83.0
- migrate from version 4 to 5
0.55.2
- change `dendron.defaultLookupCreateBehavior
Backlinks