1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-25 22:46:31 -04:00

Upgrade FluentMigrator from 1.6.2 to v3

Co-Authored-By: ta264 <ta264@users.noreply.github.com>
This commit is contained in:
Qstick
2021-07-29 00:09:21 -04:00
committed by Mark McDowall
parent e263331880
commit fd5ac3c713
20 changed files with 224 additions and 189 deletions
@@ -1,6 +1,6 @@
using System;
using FluentMigrator;
using FluentMigrator.Runner;
using Microsoft.Extensions.Logging;
using NUnit.Framework;
using NzbDrone.Core.Datastore.Migration.Framework;
@@ -35,10 +35,14 @@ namespace NzbDrone.Core.Test.Framework
return db.GetDirectDataMapper();
}
protected override void SetupLogging()
{
Mocker.SetConstant<ILoggerProvider>(Mocker.Resolve<MigrationLoggerProvider>());
}
[SetUp]
public override void SetupDb()
{
Mocker.SetConstant<IAnnouncer>(Mocker.Resolve<MigrationLogger>());
SetupContainer();
}
}