From 9d2050a21996df047e20ca4a5da5da346d560008 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 11 May 2025 09:10:37 -0500 Subject: final tweaks? --- src/slskd/Core/Data/Migrations/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/slskd/Core/Data/Migrations') 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_Migration +Z_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. -- cgit v1.2.3