Remove migrations prior to 1.0.3.162 (#5939)

* Consolidate EF migrations up to 03/2020 into a single SQL script

* Remove old migrations code
This commit is contained in:
Nicolas Dorier
2024-04-25 14:09:21 +09:00
committed by GitHub
parent 0c35939001
commit 0f08d3e3a3
36 changed files with 347 additions and 2002 deletions

View File

@@ -224,8 +224,8 @@ namespace BTCPayServer.Controllers.Greenfield
await _userManager.AddToRoleAsync(user, Roles.ServerAdmin);
if (!anyAdmin)
{
var settings = await _settingsRepository.GetSettingAsync<ThemeSettings>();
if (settings != null)
var settings = await _settingsRepository.GetSettingAsync<ThemeSettings>() ?? new ThemeSettings();
if (settings.FirstRun)
{
settings.FirstRun = false;
await _settingsRepository.UpdateSetting(settings);