aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-03-15 11:08:00 -0500
committerJP Dillingham <jp@dillingham.me>2026-03-15 11:08:00 -0500
commitc7c94d527f2eb9791541e55857353d045152d95e (patch)
tree6e514318430758b5174757392c48e582a1ea708f /src/slskd/Core
parent7d65971847354f9068ae7ea2c3bf53857566189f (diff)
parent0165b5f6cbae759acfe337170f831a11a45634e9 (diff)
downloadslskd-c7c94d527f2eb9791541e55857353d045152d95e.tar.gz
Merge remote-tracking branch 'origin/master' into retries
Diffstat (limited to 'src/slskd/Core')
-rw-r--r--src/slskd/Core/Data/Migrations/Z2026_02_17_TransferAttemptsAndBatchIdMigration.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/slskd/Core/Data/Migrations/Z2026_02_17_TransferAttemptsAndBatchIdMigration.cs b/src/slskd/Core/Data/Migrations/Z2026_02_17_TransferAttemptsAndBatchIdMigration.cs
index 66083a83..5965f7b7 100644
--- a/src/slskd/Core/Data/Migrations/Z2026_02_17_TransferAttemptsAndBatchIdMigration.cs
+++ b/src/slskd/Core/Data/Migrations/Z2026_02_17_TransferAttemptsAndBatchIdMigration.cs
@@ -46,6 +46,7 @@ public class Z2026_02_17_TransferAttemptsAndBatchIdMigration : IMigration
// check to see if the Attempts and BatchId columns exist
if (columns.Any(c => c.Name == nameof(Transfer.Attempts))
+ && columns.Any(c => c.Name == nameof(Transfer.NextAttemptAt))
&& columns.Any(c => c.Name == nameof(Transfer.BatchId))
&& indexes.Any(i => i.Name.Equals("IDX_Transfers_BatchId", StringComparison.OrdinalIgnoreCase)))
{
@@ -78,7 +79,7 @@ public class Z2026_02_17_TransferAttemptsAndBatchIdMigration : IMigration
command.ExecuteNonQuery();
}
- Log.Information("> Adding BatchId and Attempts columns to the Transfers table...");
+ Log.Information("> Adding BatchId, Attempts, and NextAttemptAt columns to the Transfers table...");
if (!columns.Any(c => c.Name == nameof(Transfer.BatchId)))
{
@@ -90,6 +91,11 @@ public class Z2026_02_17_TransferAttemptsAndBatchIdMigration : IMigration
Exec("ALTER TABLE Transfers ADD COLUMN Attempts INTEGER NOT NULL DEFAULT 0;");
}
+ if (!columns.Any(c => c.Name == nameof(Transfer.NextAttemptAt)))
+ {
+ Exec("ALTER TABLE Transfers ADD COLUMN NextAttemptAt TEXT NULL;");
+ }
+
Log.Information("> New columns added");
Log.Information("> Adding missing index(es) on the Transfers table...");