Migration

Summary

How Dendron migrates configuration

Lifecycle

  1. Dendron activates if it detects a Dendron workspace. This is described in Startup
  2. During startup, Dendron calls runMigrationsIfNecessary. Process described in Run Migration
changes = runMigrationsIfNecessary
if changes { 
  track change
} else {
  maybePromptConfigMigration
}
maybePromptConfigMigration {
    dendronConfig.version !== CURRENT_CONFIG_VERSION {
        showConfigMigrationConfirmationMessage
    }
}

When migrations are skipped

  • testing