mirror of https://github.com/lidarr/Lidarr
20 lines
573 B
C#
20 lines
573 B
C#
using System;
|
|
|
|
namespace NzbDrone.Core.Datastore.Migration.Framework
|
|
{
|
|
public class MigrationContext
|
|
{
|
|
public static MigrationContext Current { get; set; }
|
|
|
|
public MigrationType MigrationType { get; private set; }
|
|
public long? DesiredVersion { get; set; }
|
|
public Action<NzbDroneMigrationBase> BeforeMigration { get; set; }
|
|
|
|
public MigrationContext(MigrationType migrationType, long? desiredVersion = null)
|
|
{
|
|
MigrationType = migrationType;
|
|
DesiredVersion = desiredVersion;
|
|
}
|
|
}
|
|
}
|