aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/Configuration
diff options
context:
space:
mode:
authorJPVenson <github@jpb.email>2026-03-01 13:10:32 +0000
committerJPVenson <github@jpb.email>2026-03-01 13:10:32 +0000
commite70eaf8bc1470436fdafb7fef6e23898b4a3423b (patch)
tree1225e94b022dae4248b8af2f850ab35c185ecc14 /Jellyfin.Server/Configuration
parentf680495ca377b20488cc8133a054317d6daf48fc (diff)
Add startup mode to migrate or seed the database on cmd
Diffstat (limited to 'Jellyfin.Server/Configuration')
-rw-r--r--Jellyfin.Server/Configuration/StartupMode.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/Jellyfin.Server/Configuration/StartupMode.cs b/Jellyfin.Server/Configuration/StartupMode.cs
new file mode 100644
index 0000000000..f4d63652d8
--- /dev/null
+++ b/Jellyfin.Server/Configuration/StartupMode.cs
@@ -0,0 +1,24 @@
+using MediaBrowser.Model.Configuration;
+
+namespace Jellyfin.Server.Configuration;
+
+/// <summary>
+/// Defines types for usage with the <see cref="StartupOptions.StartupMode"/>.
+/// </summary>
+public enum StartupMode
+{
+ /// <summary>
+ /// Default startup mode, runs the jellyfin server in normal operation.
+ /// </summary>
+ MediaServer = 0,
+
+ /// <summary>
+ /// Attempts to Migrate the selected database only then shuts down.
+ /// </summary>
+ MigrateDatabase = 1,
+
+ /// <summary>
+ /// Runs the Database seed function regardless of <see cref="BaseApplicationConfiguration.IsStartupWizardCompleted"/> state.
+ /// </summary>
+ SeedDatabase = 2
+}