mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-04 07:10:45 +00:00
Fixes cleanup of wrong table in migration (#13796)
This commit is contained in:
parent
2c499d1e86
commit
d75216cf3a
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue