mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Fixed some small issues, here and there.
This commit is contained in:
parent
45a51497b6
commit
f4a765817b
6 changed files with 44 additions and 14 deletions
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using NLog;
|
||||
|
||||
|
@ -8,12 +9,13 @@ namespace NzbDrone.Core.Datastore
|
|||
{
|
||||
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
|
||||
|
||||
public static bool IsMigrated { get; private set; }
|
||||
public static readonly Dictionary<String, String> _migrated = new Dictionary<string, string>();
|
||||
|
||||
public static void Run(string connetionString, bool trace)
|
||||
{
|
||||
if (IsMigrated) return;
|
||||
IsMigrated = true;
|
||||
if (_migrated.ContainsKey(connetionString)) return;
|
||||
_migrated.Add(connetionString, string.Empty);
|
||||
|
||||
Logger.Info("Preparing run database migration");
|
||||
|
||||
try
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue