From 48c740d93f05dde2551fcbbb517128cb208a45f1 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 27 Jul 2025 14:16:56 -0500 Subject: add new migration --- src/slskd/Core/Data/Migrator.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/slskd/Core/Data/Migrator.cs b/src/slskd/Core/Data/Migrator.cs index 645f4575..9fe54024 100644 --- a/src/slskd/Core/Data/Migrator.cs +++ b/src/slskd/Core/Data/Migrator.cs @@ -45,10 +45,15 @@ public class Migrator /// /// A map of all migrations, to be applied in the order they are specified (descending). /// + /// + /// This could be done with reflection (e.g. find all instances of IMigration) but it's useful during development + /// to selectively add/comment out lines. Slight risk that something is missed, so this should be append only. + /// private Dictionary Migrations { get; } = new() { { nameof(Z04012025_TransferStateMigration), new Z04012025_TransferStateMigration() }, { nameof(Z07062025_TransferIndexesMigration), new Z07062025_TransferIndexesMigration() }, + { nameof(Z07262025_PrivateMessageWasReplayedMigration), new Z07262025_PrivateMessageWasReplayedMigration() }, }; /// -- cgit v1.2.3