mirror of
https://github.com/Readarr/Readarr.git
synced 2026-03-05 13:20:32 -05:00
Use new fluentmigrator prerelease feed, update to alpha 289
This commit is contained in:
@@ -3,6 +3,6 @@
|
||||
<packageSources>
|
||||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
|
||||
<add key="MyFeed" value="https://pkgs.dev.azure.com/Servarr/Servarr/_packaging/SQLite/nuget/v3/index.json" />
|
||||
<add key="FluentMigrator" value="https://www.myget.org/F/fluent-migrator/api/v3/index.json" />
|
||||
<add key="FluentMigrator" value="https://pkgs.dev.azure.com/fluentmigrator/fluentmigrator/_packaging/fluentmigrator/nuget/v3/index.json" />
|
||||
</packageSources>
|
||||
</configuration>
|
||||
|
||||
@@ -73,9 +73,9 @@ namespace NzbDrone.Core.Test.Datastore.SqliteSchemaDumperTests
|
||||
result.Name.Should().Be("TestTable");
|
||||
result.Columns.Count.Should().Be(2);
|
||||
result.Columns.First().Name.Should().Be("MyId");
|
||||
result.Columns.First().Type.Should().Be(DbType.Int64);
|
||||
result.Columns.First().Type.Should().Be(DbType.Int32);
|
||||
result.Columns.Last().Name.Should().Be("MyCol");
|
||||
result.Columns.Last().Type.Should().Be(DbType.Int64);
|
||||
result.Columns.Last().Type.Should().Be(DbType.Int32);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -162,7 +162,7 @@ namespace NzbDrone.Core.Datastore.Migration
|
||||
.WithColumn("Name").AsString().Unique()
|
||||
.WithColumn("Cutoff").AsInt32()
|
||||
.WithColumn("Items").AsString().NotNullable()
|
||||
.WithColumn("UpgradeAllowed").AsInt32().Nullable();
|
||||
.WithColumn("UpgradeAllowed").AsBoolean().Nullable();
|
||||
|
||||
Create.TableForModel("MetadataProfiles")
|
||||
.WithColumn("Name").AsString().Unique()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using FluentMigrator.Model;
|
||||
using FluentMigrator.Runner.Processors.SQLite;
|
||||
@@ -228,6 +228,8 @@ namespace NzbDrone.Core.Datastore.Migration.Framework
|
||||
case "BLOB":
|
||||
return DbType.Binary;
|
||||
case "INTEGER":
|
||||
return DbType.Int32;
|
||||
case "BIGINT":
|
||||
return DbType.Int64;
|
||||
case "NUMERIC":
|
||||
return DbType.Double;
|
||||
@@ -237,6 +239,10 @@ namespace NzbDrone.Core.Datastore.Migration.Framework
|
||||
return DbType.DateTime;
|
||||
case "UNIQUEIDENTIFIER":
|
||||
return DbType.Guid;
|
||||
case "SMALLINT":
|
||||
return DbType.Int16;
|
||||
case "TINYINT":
|
||||
return DbType.Boolean;
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
<PackageReference Include="System.Memory" Version="4.5.4" />
|
||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.5" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="3.1.5" />
|
||||
<PackageReference Include="FluentMigrator.Runner" Version="4.0.0-alpha.268" />
|
||||
<PackageReference Include="FluentMigrator.Runner.SQLite" Version="4.0.0-alpha.268" />
|
||||
<PackageReference Include="FluentMigrator.Runner" Version="4.0.0-alpha.289" />
|
||||
<PackageReference Include="FluentMigrator.Runner.SQLite" Version="4.0.0-alpha.289" />
|
||||
<PackageReference Include="FluentValidation" Version="8.6.2" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
|
||||
<PackageReference Include="NLog" Version="4.7.2" />
|
||||
|
||||
Reference in New Issue
Block a user