diff options
| author | Linus Färnstrand <faern@faern.net> | 2022-01-17 15:18:02 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2022-01-17 16:54:36 +0100 |
| commit | fd9de27227064fa73d9d0d1544ad2332e4633f41 (patch) | |
| tree | e4f88f890cd8302ef74a3a09235b83321027d41a | |
| parent | 934835efc9db7fd343fe85fcbbbae9974785a4eb (diff) | |
| download | mullvadvpn-fd9de27227064fa73d9d0d1544ad2332e4633f41.tar.xz mullvadvpn-fd9de27227064fa73d9d0d1544ad2332e4633f41.zip | |
Migration docs
| -rw-r--r-- | mullvad-daemon/src/migrations/mod.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mullvad-daemon/src/migrations/mod.rs b/mullvad-daemon/src/migrations/mod.rs index d14b95b0cc..bb2d7fe3ea 100644 --- a/mullvad-daemon/src/migrations/mod.rs +++ b/mullvad-daemon/src/migrations/mod.rs @@ -24,11 +24,12 @@ //! //! # Creating a migration //! -//! 1. Copy `vX.rs.template` to `v$CURRENT_VERSION.rs` where `$CURRENT_VERSION` is the version -//! specified under `settings_version` when running the last stable official release of the app. +//! 1. Copy `vX.rs.template` to `vX.rs` where `X` is the latest settings version right now. +//! 1. Add the new version (`Y = X+1`) to `SettingsVersion` and bump `CURRENT_SETTINGS_VERSION` +//! to `Y`. //! 1. Write a comment in the new module about how the format changed, what it needs to migrate. //! 1. Implement the migration and add adequate tests. -//! 1. Add to the changelog: "New settings version: ${CURRENT_VERSION + 1}." +//! 1. Add to the changelog: "Settings format updated to `vY`" use std::path::Path; use tokio::{ @@ -41,6 +42,7 @@ mod v1; mod v2; mod v3; mod v4; +// Not yet done. Add to this instead of creating v6 for now. mod v5; const SETTINGS_FILE: &str = "settings.json"; |
