Skip to content

Build your personal knowledge base with Trilium Notes

docs: environment variable TRILIUM_MANUAL_DB_MIGRATION usage

contributorcaa0ca0353ed
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Configuration (config.ini or e.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Configuration (config.ini or e.html
index d732b30d2f..5620d82ed9 100644
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Configuration (config.ini or e.html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Configuration (config.ini or e.html
@@ -299,6 +299,28 @@
</tbody>
</table>
+<h3>Development Section</h3>
+<table>
+ <thead>
+ <tr>
+ <th>Environment Variable</th>
+ <th>Type</th>
+ <th>Default</th>
+ <th>Description</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><code spellcheck="false">TRILIUM_MANUAL_DB_MIGRATION</code></td>
+ <td>boolean</td>
+ <td>false</td>
+ <td>If <code spellcheck="false">true</code>, the application will not start
+ if automatic database migrations are pending and would modify the database
+ schema.</td>
+ </tr>
+ </tbody>
+</table>
+
<h2>Alternative Environment Variables</h2>
<p>The following alternative environment variable names are also supported
and work identically to their longer counterparts:</p>
diff --git a/docs/User Guide/User Guide/Advanced Usage/Configuration (config.ini or e.md b/docs/User Guide/User Guide/Advanced Usage/Configuration (config.ini or e.md
index d91571622f..bf2e51eabd 100644
--- a/docs/User Guide/User Guide/Advanced Usage/Configuration (config.ini or e.md
+++ b/docs/User Guide/User Guide/Advanced Usage/Configuration (config.ini or e.md
@@ -82,6 +82,12 @@ Additionally, shorter aliases are available for common configurations (see Alter
| --- | --- | --- | --- |
| `TRILIUM_LOGGING_RETENTIONDAYS` | integer | 90 | Number of days to retain log files |
+### Development Section
+
+| Environment Variable | Type | Default | Description |
+| --- | --- | --- | --- |
+| `TRILIUM_MANUAL_DB_MIGRATION` | boolean | false | If `true`, the application will not start if automatic database migrations are pending and would modify the database schema. |
+
## Alternative Environment Variables
The following alternative environment variable names are also supported and work identically to their longer counterparts: