The Free Software Media System - Server Backend & API
Fix schema name on backup
JPVenson91da1c035d7b
diff --git a/Jellyfin.Server.Implementations/FullSystemBackup/BackupService.cs b/Jellyfin.Server.Implementations/FullSystemBackup/BackupService.csindex e266d5a3bc..ad8f5f3370 100644--- a/Jellyfin.Server.Implementations/FullSystemBackup/BackupService.cs+++ b/Jellyfin.Server.Implementations/FullSystemBackup/BackupService.cs@@ -297,7 +297,7 @@ public class BackupService : IBackupService.GetProperties(System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance).Where(e => e.PropertyType.IsAssignableTo(typeof(IQueryable))).Select(e => (Type: e.PropertyType, ValueFactory: new Func<IAsyncEnumerable<object>>(() => GetValues((IQueryable)e.GetValue(dbContext)!, e.PropertyType)))),- (Type: typeof(HistoryRow), ValueFactory: new Func<IAsyncEnumerable<object>>(() => migrations.ToAsyncEnumerable()))+ (Type: typeof(IQueryable<HistoryRow>), ValueFactory: new Func<IAsyncEnumerable<object>>(() => migrations.ToAsyncEnumerable()))];manifest.DatabaseTables = entityTypes.Select(e => e.Type.Name).ToArray();var transaction = await dbContext.Database.BeginTransactionAsync().ConfigureAwait(false);@@ -308,6 +308,7 @@ public class BackupService : IBackupServiceforeach (var entityType in entityTypes){+ var schemaName = dbContext.Model.FindEntityType(entityType.Type.GetGenericArguments()[0])!.GetSchemaQualifiedTableName()!;_logger.LogInformation("Begin backup of entity {Table}", entityType.Type.Name);var zipEntry = zipArchive.CreateEntry($"Database\\{entityType.Type.Name}.json");var entities = 0;