mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-13 08:37:07 +00:00
Update naming
This commit is contained in:
parent
e70eaf8bc1
commit
63c4fc297a
2 changed files with 4 additions and 4 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue