mirror of
https://github.com/Readarr/Readarr
synced 2025-12-23 00:36:08 +01:00
Use new fluentmigrator prerelease feed, update to alpha 289
This commit is contained in:
parent
6dbce8d12e
commit
222157150c
5 changed files with 13 additions and 7 deletions
|
|
@ -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 @@ public void should_ignore_unknown_symbols()
|
|||
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 @@ protected override void MainDbUpgrade()
|
|||
.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 @@ protected virtual IList<TableDefinition> ReadTables()
|
|||
case "BLOB":
|
||||
return DbType.Binary;
|
||||
case "INTEGER":
|
||||
return DbType.Int32;
|
||||
case "BIGINT":
|
||||
return DbType.Int64;
|
||||
case "NUMERIC":
|
||||
return DbType.Double;
|
||||
|
|
@ -237,6 +239,10 @@ protected virtual IList<TableDefinition> ReadTables()
|
|||
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" />
|
||||
|
|
|
|||
Loading…
Reference in a new issue