mirror of
https://github.com/Radarr/Radarr
synced 2025-01-03 05:44:50 +00:00
Fixed: Initialize databases after app folder migrations
This commit is contained in:
parent
2677d25980
commit
711637c448
2 changed files with 4 additions and 3 deletions
|
@ -23,7 +23,6 @@
|
|||
using NzbDrone.Common.Instrumentation.Extensions;
|
||||
using NzbDrone.Core.Configuration;
|
||||
using NzbDrone.Core.Datastore.Extensions;
|
||||
using Radarr.Http.ClientSchema;
|
||||
using PostgresOptions = NzbDrone.Core.Datastore.PostgresOptions;
|
||||
|
||||
namespace NzbDrone.Host
|
||||
|
@ -147,8 +146,6 @@ public static IHostBuilder CreateConsoleHostBuilder(string[] args, StartupContex
|
|||
.AddNzbDroneLogger()
|
||||
.AddDatabase()
|
||||
.AddStartupContext(context);
|
||||
|
||||
SchemaBuilder.Initialize(c);
|
||||
})
|
||||
.ConfigureServices(services =>
|
||||
{
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using DryIoc;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.DataProtection;
|
||||
|
@ -27,6 +28,7 @@
|
|||
using Radarr.Api.V3.System;
|
||||
using Radarr.Http;
|
||||
using Radarr.Http.Authentication;
|
||||
using Radarr.Http.ClientSchema;
|
||||
using Radarr.Http.ErrorManagement;
|
||||
using Radarr.Http.Frontend;
|
||||
using Radarr.Http.Middleware;
|
||||
|
@ -209,6 +211,7 @@ public void ConfigureServices(IServiceCollection services)
|
|||
}
|
||||
|
||||
public void Configure(IApplicationBuilder app,
|
||||
IContainer container,
|
||||
IStartupContext startupContext,
|
||||
Lazy<IMainDatabase> mainDatabaseFactory,
|
||||
Lazy<ILogDatabase> logDatabaseFactory,
|
||||
|
@ -239,6 +242,7 @@ public void Configure(IApplicationBuilder app,
|
|||
_ = logDatabaseFactory.Value;
|
||||
|
||||
dbTarget.Register();
|
||||
SchemaBuilder.Initialize(container);
|
||||
|
||||
if (OsInfo.IsNotWindows)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue