diff options
| author | JP Dillingham <jp@dillingham.me> | 2025-05-11 09:10:37 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2025-05-11 09:14:49 -0500 |
| commit | 9d2050a21996df047e20ca4a5da5da346d560008 (patch) | |
| tree | 1e50ee96796d4900159e2442517a0aa202c61bb4 /src/slskd/Core/Data/Migrations | |
| parent | 3fed167896a1376bedf9f5997887674bc1b1e2ea (diff) | |
| download | slskd-9d2050a21996df047e20ca4a5da5da346d560008.tar.gz | |
final tweaks?
Diffstat (limited to 'src/slskd/Core/Data/Migrations')
| -rw-r--r-- | src/slskd/Core/Data/Migrations/README.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/slskd/Core/Data/Migrations/README.md b/src/slskd/Core/Data/Migrations/README.md index 0cafbe6a..cae058b2 100644 --- a/src/slskd/Core/Data/Migrations/README.md +++ b/src/slskd/Core/Data/Migrations/README.md @@ -13,7 +13,7 @@ The `Migrator` creates a backup of each database prior to running any migrations Each migration must be created as a class that implements the `IMigration` interface. The naming convention for migration classes is: ``` -z<MMDDYYYY>_<ShortDescription>Migration +Z<MMDDYYYY>_<ShortDescription>Migration ``` Migrations MUST: @@ -24,6 +24,8 @@ and the name(s) of the table(s) that need to be migrated. * Use transactions when performing database operations and using/try catch where appropriate to avoid partially applied migrations. * Log progress, so users can see that the application is performing work while records are updated. +Review the `IMigration` interface to determine implementation details. + The new `IMigration` implementation must be added to the dictionary in the `Migrations` property of the `Migrator` in the desired order so that it can be run. ### Above all else, each and every migration **MUST** be idempotent. |
