Migration

Initialization

Extension starts up

Run Migration

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