mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-13 04:06:31 +01:00
Update naming
This commit is contained in:
@@ -13,12 +13,12 @@ public enum StartupMode
|
||||
MediaServer = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Attempts to Migrate the selected database only then shuts down.
|
||||
/// Attempts to Migrate the system only then shuts down.
|
||||
/// </summary>
|
||||
MigrateDatabase = 1,
|
||||
MigrateSystem = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Runs the Database seed function regardless of <see cref="BaseApplicationConfiguration.IsStartupWizardCompleted"/> state.
|
||||
/// </summary>
|
||||
SeedDatabase = 2
|
||||
SeedSystem = 2
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@ internal class JellyfinMigrationService
|
||||
var serverConfig = File.Exists(appPaths.SystemConfigurationFilePath)
|
||||
? (ServerConfiguration)xmlSerializer.DeserializeFromFile(typeof(ServerConfiguration), appPaths.SystemConfigurationFilePath)!
|
||||
: new ServerConfiguration();
|
||||
if (!serverConfig.IsStartupWizardCompleted || startupOptions.StartupMode is Configuration.StartupMode.SeedDatabase)
|
||||
if (!serverConfig.IsStartupWizardCompleted || startupOptions.StartupMode is Configuration.StartupMode.SeedSystem)
|
||||
{
|
||||
logger.LogInformation("System initialization detected. Seed data. Startup mode is: {StartupMode}", startupOptions.StartupMode ?? Configuration.StartupMode.MediaServer);
|
||||
var flatApplyMigrations = Migrations.SelectMany(e => e.Where(f => !f.Metadata.RunMigrationOnSetup)).ToArray();
|
||||
|
||||
Reference in New Issue
Block a user