From 44f869902ebc5859755b72e214f9e23f4f740bd3 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Mon, 25 Aug 2014 11:12:26 -0700 Subject: [PATCH] Fixed: Migration issue when column names were wrapped in backticks instead of quotes (cherry picked from commit 15ebe03130bdfff82cde75eb20c8db9bf3e74f83) --- .../Datastore/Migration/Framework/SQLiteMigrationHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Datastore/Migration/Framework/SQLiteMigrationHelper.cs b/src/NzbDrone.Core/Datastore/Migration/Framework/SQLiteMigrationHelper.cs index fabdefca9..8258d283c 100644 --- a/src/NzbDrone.Core/Datastore/Migration/Framework/SQLiteMigrationHelper.cs +++ b/src/NzbDrone.Core/Datastore/Migration/Framework/SQLiteMigrationHelper.cs @@ -26,7 +26,7 @@ namespace NzbDrone.Core.Datastore.Migration.Framework { private readonly SQLiteConnection _connection; - private static readonly Regex SchemaRegex = new Regex(@"['\""\[](?\w+)['\""\]]\s(?[\w-\s]+)", + private static readonly Regex SchemaRegex = new Regex(@"[`'\""\[](?\w+)[`'\""\]]\s(?[\w-\s]+)", RegexOptions.Compiled | RegexOptions.IgnoreCase | RegexOptions.Multiline); private static readonly Regex IndexRegex = new Regex(@"\((?:""|')(?.*)(?:""|')\s(?ASC|DESC)\)$",