diff options
| author | JP Dillingham <jp@dillingham.me> | 2025-07-30 20:44:58 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-30 20:44:58 -0500 |
| commit | da71a74850b837ce6e831b9212714e510e72ca5e (patch) | |
| tree | 523dc96ed715cf8098758365c6c9277c79b89fa1 /src/slskd/Core/Data/Migrator.cs | |
| parent | 1fade356f1b8b38e269408aeec89e96e5fae5cb6 (diff) | |
| parent | 5beeea03a1bc4f0c05467a7668c7f8a104f69206 (diff) | |
| download | slskd-da71a74850b837ce6e831b9212714e510e72ca5e.tar.gz | |
Merge pull request #1399 from slskd/msg-events
Add chat events for webhooks and scripts
Diffstat (limited to 'src/slskd/Core/Data/Migrator.cs')
| -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> |
