diff options
| author | Patrick Barron <barronpm@gmail.com> | 2020-05-15 12:51:18 -0400 |
|---|---|---|
| committer | Patrick Barron <barronpm@gmail.com> | 2020-05-15 12:51:18 -0400 |
| commit | a5dee3680880d525a6c507deb7dd284b08b7ebdd (patch) | |
| tree | 1e456a4a0c7657c9f7e7c490eead4c0d21b249e3 /Jellyfin.Server/Migrations/Routines/MigrateActivityLogDb.cs | |
| parent | 953777f1ba4858f5186086e97910fcb88bfe3d61 (diff) | |
Apply more review suggestions
Diffstat (limited to 'Jellyfin.Server/Migrations/Routines/MigrateActivityLogDb.cs')
| -rw-r--r-- | Jellyfin.Server/Migrations/Routines/MigrateActivityLogDb.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Jellyfin.Server/Migrations/Routines/MigrateActivityLogDb.cs b/Jellyfin.Server/Migrations/Routines/MigrateActivityLogDb.cs index 1d684804d..6f4fc4f28 100644 --- a/Jellyfin.Server/Migrations/Routines/MigrateActivityLogDb.cs +++ b/Jellyfin.Server/Migrations/Routines/MigrateActivityLogDb.cs @@ -106,11 +106,10 @@ namespace Jellyfin.Server.Migrations.Routines newEntry.ItemId = entry[5].ToString(); } - // Since code references the Id of the entries, this needs to be inserted in order. - // In order to do that, we insert one by one because EF Core doesn't provide a way to guarantee ordering for bulk inserts. dbContext.ActivityLogs.Add(newEntry); - dbContext.SaveChanges(); } + + dbContext.SaveChanges(); } try |
