Fixed: Migration issue when column names were wrapped in backticks instead of quotes

(cherry picked from commit 15ebe03130bdfff82cde75eb20c8db9bf3e74f83)
This commit is contained in:
Mark McDowall 2014-08-25 11:12:26 -07:00
parent dbd5655473
commit 44f869902e
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ namespace NzbDrone.Core.Datastore.Migration.Framework
{
private readonly SQLiteConnection _connection;
private static readonly Regex SchemaRegex = new Regex(@"['\""\[](?<name>\w+)['\""\]]\s(?<schema>[\w-\s]+)",
private static readonly Regex SchemaRegex = new Regex(@"[`'\""\[](?<name>\w+)[`'\""\]]\s(?<schema>[\w-\s]+)",
RegexOptions.Compiled | RegexOptions.IgnoreCase | RegexOptions.Multiline);
private static readonly Regex IndexRegex = new Regex(@"\((?:""|')(?<col>.*)(?:""|')\s(?<direction>ASC|DESC)\)$",