diff options
| author | JP Dillingham <jp@dillingham.me> | 2025-07-27 14:16:56 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2025-07-27 14:16:56 -0500 |
| commit | 48c740d93f05dde2551fcbbb517128cb208a45f1 (patch) | |
| tree | 9c2b8b3ec3060f47bc2e874a1babf33225a88b3d /src | |
| parent | 871999808e44c60a6939aa2361204a7be03f0cd1 (diff) | |
| download | slskd-48c740d93f05dde2551fcbbb517128cb208a45f1.tar.gz | |
add new migration
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Core/Data/Migrator.cs | 5 |
1 files changed, 5 insertions, 0 deletions
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 /// <summary> /// A map of all migrations, to be applied in the order they are specified (descending). /// </summary> + /// <remarks> + /// 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. + /// </remarks> private Dictionary<string, IMigration> Migrations { get; } = new() { { nameof(Z04012025_TransferStateMigration), new Z04012025_TransferStateMigration() }, { nameof(Z07062025_TransferIndexesMigration), new Z07062025_TransferIndexesMigration() }, + { nameof(Z07262025_PrivateMessageWasReplayedMigration), new Z07262025_PrivateMessageWasReplayedMigration() }, }; /// <summary> |
