Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
add translation key for disabled automatic migrations
contributor2f18dd772be0
diff --git a/apps/server/src/assets/translations/en/server.json b/apps/server/src/assets/translations/en/server.jsonindex 09ac479360..9c959d50bb 100644--- a/apps/server/src/assets/translations/en/server.json+++ b/apps/server/src/assets/translations/en/server.json@@ -360,6 +360,7 @@"migration": {"old_version": "Direct migration from your current version is not supported. Please upgrade to the latest v0.60.4 first and only then to this version.","error_message": "Error during migration to version {{version}}: {{stack}}",+ "automatic_migrations_disabled": "Automatic DB migrations are disabled via environment variable TRILIUM_MANUAL_DB_MIGRATION = {{envVarValue}}","wrong_db_version": "The version of the database ({{version}}) is newer than what the application expects ({{targetVersion}}), which means that it was created by a newer and incompatible version of Trilium. Upgrade to the latest version of Trilium to resolve this issue.","invalid_db_version": "The database version is not a valid number. This usually indicates a corrupted 'dbVersion' option in the database. Please restore from a backup."},diff --git a/packages/trilium-core/src/services/migration.ts b/packages/trilium-core/src/services/migration.tsindex 70448ff81b..42c5f41373 100644--- a/packages/trilium-core/src/services/migration.ts+++ b/packages/trilium-core/src/services/migration.ts@@ -142,7 +142,7 @@ async function migrateIfNecessary() {if (!isDbUpToDate()) {if (process.env.TRILIUM_MANUAL_DB_MIGRATION === "true") {- await crash(`Automatic DB migrations are disabled via env var TRILIUM_MANUAL_DB_MIGRATION = ${process.env.TRILIUM_MANUAL_DB_MIGRATION}`);+ await crash(t("migration.automatic_migrations_disabled", { envVarValue: process.env.TRILIUM_MANUAL_DB_MIGRATION}));return;}await migrate();