1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-04 09:32:48 -05:00

move migrations to migrator project

This commit is contained in:
Kyle Spearrin
2019-03-25 13:21:05 -04:00
parent cfe3708509
commit 28884c3330
34 changed files with 184 additions and 11566 deletions

View File

@ -75,7 +75,11 @@ namespace Bit.Admin
// Jobs service
Jobs.JobsHostedService.AddJobsServices(services);
services.AddHostedService<Jobs.JobsHostedService>();
if(!globalSettings.SelfHosted)
if(globalSettings.SelfHosted)
{
services.AddHostedService<HostedServices.DatabaseMigrationHostedService>();
}
else
{
if(CoreHelpers.SettingHasValue(globalSettings.Storage.ConnectionString))
{