aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server
diff options
context:
space:
mode:
authorJPVenson <github@jpb.email>2025-03-29 17:00:19 +0100
committerGitHub <noreply@github.com>2025-03-29 10:00:19 -0600
commitd75216cf3a9bb3f869415bed829dca996f4ee7c9 (patch)
tree8b5588eb52165bae3dce83f3c786059a788928a3 /Jellyfin.Server
parent2c499d1e86f1ea3ee087bc8f6ff101a1b1ec2ab3 (diff)
Fixes cleanup of wrong table in migration (#13796)
Diffstat (limited to 'Jellyfin.Server')
-rw-r--r--Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs b/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs
index 427f04f9d..cc90a53e8 100644
--- a/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs
+++ b/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs
@@ -272,7 +272,7 @@ internal class MigrateLibraryDb : IDatabaseMigrationRoutine
peopleCache.Clear();
- _logger.LogInformation("Try saving {0} People entries.", dbContext.MediaStreamInfos.Local.Count);
+ _logger.LogInformation("Try saving {0} People entries.", dbContext.Peoples.Local.Count);
dbContext.SaveChanges();
migrationTotalTime += stopwatch.Elapsed;
_logger.LogInformation("Saving People entries took {0}.", stopwatch.Elapsed);
@@ -305,7 +305,7 @@ internal class MigrateLibraryDb : IDatabaseMigrationRoutine
AND
EXISTS(SELECT 1 FROM TypedBaseItems WHERE TypedBaseItems.guid = AncestorIds.AncestorId)
""";
- dbContext.Chapters.ExecuteDelete();
+ dbContext.AncestorIds.ExecuteDelete();
foreach (SqliteDataReader dto in connection.Query(ancestorIdsQuery))
{
@@ -313,7 +313,7 @@ internal class MigrateLibraryDb : IDatabaseMigrationRoutine
dbContext.AncestorIds.Add(ancestorId);
}
- _logger.LogInformation("Try saving {0} AncestorIds entries.", dbContext.Chapters.Local.Count);
+ _logger.LogInformation("Try saving {0} AncestorIds entries.", dbContext.AncestorIds.Local.Count);
dbContext.SaveChanges();
migrationTotalTime += stopwatch.Elapsed;