aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/slskd/Program.cs')
-rw-r--r--src/slskd/Program.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs
index 50ae7a07..8fbc0522 100644
--- a/src/slskd/Program.cs
+++ b/src/slskd/Program.cs
@@ -494,6 +494,13 @@ namespace slskd
var app = builder.Build();
+ var migrator = app.Services.GetService<Migrator>();
+
+ if (migrator is not null)
+ {
+ migrator.Migrate();
+ }
+
// hack: services that exist only to subscribe to the event bus are not referenced by anything else
// and are thus never instantiated. force a reference here so they are created.
_ = app.Services.GetService<ScriptService>();