mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-27 22:56:45 -04:00
upgraded nuget packages
This commit is contained in:
@@ -10,7 +10,7 @@ using FluentMigrator.Runner.Processors.SQLite;
|
||||
|
||||
namespace NzbDrone.Core.Datastore.Migration.Framework
|
||||
{
|
||||
public class NzbDroneSqliteProcessor : SqliteProcessor
|
||||
public class NzbDroneSqliteProcessor : SQLiteProcessor
|
||||
{
|
||||
public NzbDroneSqliteProcessor(IDbConnection connection, IMigrationGenerator generator, IAnnouncer announcer, IMigrationProcessorOptions options, FluentMigrator.Runner.Processors.IDbFactory factory)
|
||||
: base(connection, generator, announcer, options, factory)
|
||||
@@ -70,7 +70,7 @@ namespace NzbDrone.Core.Datastore.Migration.Framework
|
||||
|
||||
protected virtual TableDefinition GetTableSchema(string tableName)
|
||||
{
|
||||
var schemaDumper = new SqliteSchemaDumper(this, Announcer);
|
||||
var schemaDumper = new SqliteSchemaDumper(this, Announcer);
|
||||
var schema = schemaDumper.ReadDbSchema();
|
||||
|
||||
return schema.Single(v => v.Name == tableName);
|
||||
@@ -88,7 +88,7 @@ namespace NzbDrone.Core.Datastore.Migration.Framework
|
||||
}
|
||||
|
||||
// What is the cleanest way to do this? Add function to Generator?
|
||||
var quoter = new SqliteQuoter();
|
||||
var quoter = new SQLiteQuoter();
|
||||
var columnsToTransfer = string.Join(", ", tableDefinition.Columns.Select(c => quoter.QuoteColumnName(c.Name)));
|
||||
|
||||
Process(new CreateTableExpression() { TableName = tempTableName, Columns = tableDefinition.Columns.ToList() });
|
||||
|
||||
@@ -6,13 +6,13 @@ using FluentMigrator.Runner.Processors.SQLite;
|
||||
|
||||
namespace NzbDrone.Core.Datastore.Migration.Framework
|
||||
{
|
||||
public class NzbDroneSqliteProcessorFactory : SqliteProcessorFactory
|
||||
public class NzbDroneSqliteProcessorFactory : SQLiteProcessorFactory
|
||||
{
|
||||
public override IMigrationProcessor Create(string connectionString, IAnnouncer announcer, IMigrationProcessorOptions options)
|
||||
{
|
||||
var factory = new MigrationDbFactory();
|
||||
var connection = factory.CreateConnection(connectionString);
|
||||
var generator = new SqliteGenerator() { compatabilityMode = CompatabilityMode.STRICT };
|
||||
var generator = new SQLiteGenerator { compatabilityMode = CompatabilityMode.STRICT };
|
||||
return new NzbDroneSqliteProcessor(connection, generator, announcer, options, factory);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,14 +11,14 @@ namespace NzbDrone.Core.Datastore.Migration.Framework
|
||||
// The original implementation had bad support for escaped identifiers, amongst other things.
|
||||
public class SqliteSchemaDumper
|
||||
{
|
||||
public SqliteSchemaDumper(SqliteProcessor processor, IAnnouncer announcer)
|
||||
public SqliteSchemaDumper(SQLiteProcessor processor, IAnnouncer announcer)
|
||||
{
|
||||
Announcer = announcer;
|
||||
Processor = processor;
|
||||
}
|
||||
|
||||
public virtual IAnnouncer Announcer { get; set; }
|
||||
public SqliteProcessor Processor { get; set; }
|
||||
public SQLiteProcessor Processor { get; set; }
|
||||
|
||||
protected internal virtual TableDefinition ReadTableSchema(string sqlSchema)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user