mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Workaround unsigned fields in database unsupported by EntityFramework 6.
This commit is contained in:
@@ -382,8 +382,6 @@ namespace DiscImageChef.Database.Migrations
|
||||
|
||||
b.Property<bool>("MultiRead");
|
||||
|
||||
b.Property<uint?>("PhysicalInterfaceStandard");
|
||||
|
||||
b.Property<uint?>("PhysicalInterfaceStandardNumber");
|
||||
|
||||
b.Property<bool>("PreventJumper");
|
||||
|
||||
@@ -138,7 +138,6 @@ namespace DiscImageChef.Database.Migrations
|
||||
Locked = table.Column<bool>(nullable: false),
|
||||
LogicalBlockSize = table.Column<uint>(nullable: true),
|
||||
MultiRead = table.Column<bool>(nullable: false),
|
||||
PhysicalInterfaceStandard = table.Column<uint>(nullable: true),
|
||||
PhysicalInterfaceStandardNumber = table.Column<uint>(nullable: true),
|
||||
PreventJumper = table.Column<bool>(nullable: false),
|
||||
SupportsAACS = table.Column<bool>(nullable: false),
|
||||
|
||||
@@ -390,8 +390,6 @@ namespace DiscImageChef.Database.Migrations
|
||||
|
||||
b.Property<bool>("MultiRead");
|
||||
|
||||
b.Property<uint?>("PhysicalInterfaceStandard");
|
||||
|
||||
b.Property<uint?>("PhysicalInterfaceStandardNumber");
|
||||
|
||||
b.Property<bool>("PreventJumper");
|
||||
|
||||
@@ -333,8 +333,6 @@ namespace DiscImageChef.Database.Migrations
|
||||
|
||||
b.Property<bool>("MultiRead");
|
||||
|
||||
b.Property<uint?>("PhysicalInterfaceStandard");
|
||||
|
||||
b.Property<uint?>("PhysicalInterfaceStandardNumber");
|
||||
|
||||
b.Property<bool>("PreventJumper");
|
||||
|
||||
@@ -333,8 +333,6 @@ namespace DiscImageChef.Database.Migrations
|
||||
|
||||
b.Property<bool>("MultiRead");
|
||||
|
||||
b.Property<uint?>("PhysicalInterfaceStandard");
|
||||
|
||||
b.Property<uint?>("PhysicalInterfaceStandardNumber");
|
||||
|
||||
b.Property<bool>("PreventJumper");
|
||||
|
||||
@@ -333,8 +333,6 @@ namespace DiscImageChef.Database.Migrations
|
||||
|
||||
b.Property<bool>("MultiRead");
|
||||
|
||||
b.Property<uint?>("PhysicalInterfaceStandard");
|
||||
|
||||
b.Property<uint?>("PhysicalInterfaceStandardNumber");
|
||||
|
||||
b.Property<bool>("PreventJumper");
|
||||
|
||||
@@ -333,8 +333,6 @@ namespace DiscImageChef.Database.Migrations
|
||||
|
||||
b.Property<bool>("MultiRead");
|
||||
|
||||
b.Property<uint?>("PhysicalInterfaceStandard");
|
||||
|
||||
b.Property<uint?>("PhysicalInterfaceStandardNumber");
|
||||
|
||||
b.Property<bool>("PreventJumper");
|
||||
|
||||
@@ -333,8 +333,6 @@ namespace DiscImageChef.Database.Migrations
|
||||
|
||||
b.Property<bool>("MultiRead");
|
||||
|
||||
b.Property<uint?>("PhysicalInterfaceStandard");
|
||||
|
||||
b.Property<uint?>("PhysicalInterfaceStandardNumber");
|
||||
|
||||
b.Property<bool>("PreventJumper");
|
||||
|
||||
@@ -333,8 +333,6 @@ namespace DiscImageChef.Database.Migrations
|
||||
|
||||
b.Property<bool>("MultiRead");
|
||||
|
||||
b.Property<uint?>("PhysicalInterfaceStandard");
|
||||
|
||||
b.Property<uint?>("PhysicalInterfaceStandardNumber");
|
||||
|
||||
b.Property<bool>("PreventJumper");
|
||||
|
||||
@@ -333,8 +333,6 @@ namespace DiscImageChef.Database.Migrations
|
||||
|
||||
b.Property<bool>("MultiRead");
|
||||
|
||||
b.Property<uint?>("PhysicalInterfaceStandard");
|
||||
|
||||
b.Property<uint?>("PhysicalInterfaceStandardNumber");
|
||||
|
||||
b.Property<bool>("PreventJumper");
|
||||
|
||||
1475
DiscImageChef.Database/Migrations/20181223183913_FixUnsignedFields.Designer.cs
generated
Normal file
1475
DiscImageChef.Database/Migrations/20181223183913_FixUnsignedFields.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,146 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace DiscImageChef.Database.Migrations
|
||||
{
|
||||
public partial class FixUnsignedFields : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<short>("ProductIDSql", "Usb", nullable: false, defaultValue: (short)0);
|
||||
|
||||
migrationBuilder.AddColumn<short>("VendorIDSql", "Usb", nullable: false, defaultValue: (short)0);
|
||||
|
||||
migrationBuilder.AddColumn<int>("BlockSizeSql", "TestedMedia", nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<long>("BlocksSql", "TestedMedia", nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<long>("LBA48SectorsSql", "TestedMedia", nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>("LBASectorsSql", "TestedMedia", nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<short>("LogicalAlignmentSql", "TestedMedia", nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>("LongBlockSizeSql", "TestedMedia", nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<short>("NominalRotationRateSql", "TestedMedia", nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>("PhysicalBlockSizeSql", "TestedMedia", nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<short>("UnformattedBPSSql", "TestedMedia", nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<short>("UnformattedBPTSql", "TestedMedia", nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>("BitsPerMmSql", "SupportedDensity", nullable: false, defaultValue: 0);
|
||||
|
||||
migrationBuilder.AddColumn<int>("CapacitySql", "SupportedDensity", nullable: false, defaultValue: 0);
|
||||
|
||||
migrationBuilder.AddColumn<short>("TracksSql", "SupportedDensity", nullable: false, defaultValue: (short)0);
|
||||
|
||||
migrationBuilder.AddColumn<short>("WidthSql", "SupportedDensity", nullable: false, defaultValue: (short)0);
|
||||
|
||||
migrationBuilder.AddColumn<short>("LengthSql", "SscSupportedMedia", nullable: false,
|
||||
defaultValue: (short)0);
|
||||
|
||||
migrationBuilder.AddColumn<short>("WidthSql", "SscSupportedMedia", nullable: false, defaultValue: (short)0);
|
||||
|
||||
migrationBuilder.AddColumn<int>("MaxBlockLengthSql", "Ssc", nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>("MinBlockLengthSql", "Ssc", nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<short>("CardCodeSql", "Pcmcia", nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<short>("ManufacturerCodeSql", "Pcmcia", nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<short>("BlocksPerReadableUnitSql", "MmcFeatures", nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>("LogicalBlockSizeSql", "MmcFeatures", nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>("PhysicalInterfaceStandardNumberSql", "MmcFeatures", nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<short>("VolumeLevelsSql", "MmcFeatures", nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>("ProductIDSql", "FireWire", nullable: false, defaultValue: 0);
|
||||
|
||||
migrationBuilder.AddColumn<int>("VendorIDSql", "FireWire", nullable: false, defaultValue: 0);
|
||||
|
||||
migrationBuilder.AddColumn<short>("CylindersSql", "Chs", nullable: false, defaultValue: (short)0);
|
||||
|
||||
migrationBuilder.AddColumn<short>("HeadsSql", "Chs", nullable: false, defaultValue: (short)0);
|
||||
|
||||
migrationBuilder.AddColumn<short>("SectorsSql", "Chs", nullable: false, defaultValue: (short)0);
|
||||
|
||||
migrationBuilder.AddColumn<int>("BlockLengthSql", "BlockDescriptor", nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<long>("BlocksSql", "BlockDescriptor", nullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn("ProductIDSql", "Usb");
|
||||
|
||||
migrationBuilder.DropColumn("VendorIDSql", "Usb");
|
||||
|
||||
migrationBuilder.DropColumn("BlockSizeSql", "TestedMedia");
|
||||
|
||||
migrationBuilder.DropColumn("BlocksSql", "TestedMedia");
|
||||
|
||||
migrationBuilder.DropColumn("LBA48SectorsSql", "TestedMedia");
|
||||
|
||||
migrationBuilder.DropColumn("LBASectorsSql", "TestedMedia");
|
||||
|
||||
migrationBuilder.DropColumn("LogicalAlignmentSql", "TestedMedia");
|
||||
|
||||
migrationBuilder.DropColumn("LongBlockSizeSql", "TestedMedia");
|
||||
|
||||
migrationBuilder.DropColumn("NominalRotationRateSql", "TestedMedia");
|
||||
|
||||
migrationBuilder.DropColumn("PhysicalBlockSizeSql", "TestedMedia");
|
||||
|
||||
migrationBuilder.DropColumn("UnformattedBPSSql", "TestedMedia");
|
||||
|
||||
migrationBuilder.DropColumn("UnformattedBPTSql", "TestedMedia");
|
||||
|
||||
migrationBuilder.DropColumn("BitsPerMmSql", "SupportedDensity");
|
||||
|
||||
migrationBuilder.DropColumn("CapacitySql", "SupportedDensity");
|
||||
|
||||
migrationBuilder.DropColumn("TracksSql", "SupportedDensity");
|
||||
|
||||
migrationBuilder.DropColumn("WidthSql", "SupportedDensity");
|
||||
|
||||
migrationBuilder.DropColumn("LengthSql", "SscSupportedMedia");
|
||||
|
||||
migrationBuilder.DropColumn("WidthSql", "SscSupportedMedia");
|
||||
|
||||
migrationBuilder.DropColumn("MaxBlockLengthSql", "Ssc");
|
||||
|
||||
migrationBuilder.DropColumn("MinBlockLengthSql", "Ssc");
|
||||
|
||||
migrationBuilder.DropColumn("CardCodeSql", "Pcmcia");
|
||||
|
||||
migrationBuilder.DropColumn("ManufacturerCodeSql", "Pcmcia");
|
||||
|
||||
migrationBuilder.DropColumn("BlocksPerReadableUnitSql", "MmcFeatures");
|
||||
|
||||
migrationBuilder.DropColumn("LogicalBlockSizeSql", "MmcFeatures");
|
||||
|
||||
migrationBuilder.DropColumn("PhysicalInterfaceStandardNumberSql", "MmcFeatures");
|
||||
|
||||
migrationBuilder.DropColumn("VolumeLevelsSql", "MmcFeatures");
|
||||
|
||||
migrationBuilder.DropColumn("ProductIDSql", "FireWire");
|
||||
|
||||
migrationBuilder.DropColumn("VendorIDSql", "FireWire");
|
||||
|
||||
migrationBuilder.DropColumn("CylindersSql", "Chs");
|
||||
|
||||
migrationBuilder.DropColumn("HeadsSql", "Chs");
|
||||
|
||||
migrationBuilder.DropColumn("SectorsSql", "Chs");
|
||||
|
||||
migrationBuilder.DropColumn("BlockLengthSql", "BlockDescriptor");
|
||||
|
||||
migrationBuilder.DropColumn("BlocksSql", "BlockDescriptor");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -35,8 +35,12 @@ namespace DiscImageChef.Database.Migrations
|
||||
|
||||
b.Property<uint?>("BlockLength");
|
||||
|
||||
b.Property<int?>("BlockLengthSql");
|
||||
|
||||
b.Property<ulong?>("Blocks");
|
||||
|
||||
b.Property<long?>("BlocksSql");
|
||||
|
||||
b.Property<byte>("Density");
|
||||
|
||||
b.Property<int?>("ScsiModeId");
|
||||
@@ -54,10 +58,16 @@ namespace DiscImageChef.Database.Migrations
|
||||
|
||||
b.Property<ushort>("Cylinders");
|
||||
|
||||
b.Property<short>("CylindersSql");
|
||||
|
||||
b.Property<ushort>("Heads");
|
||||
|
||||
b.Property<short>("HeadsSql");
|
||||
|
||||
b.Property<ushort>("Sectors");
|
||||
|
||||
b.Property<short>("SectorsSql");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Chs");
|
||||
@@ -86,10 +96,14 @@ namespace DiscImageChef.Database.Migrations
|
||||
|
||||
b.Property<uint>("ProductID");
|
||||
|
||||
b.Property<int>("ProductIDSql");
|
||||
|
||||
b.Property<bool>("RemovableMedia");
|
||||
|
||||
b.Property<uint>("VendorID");
|
||||
|
||||
b.Property<int>("VendorIDSql");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("FireWire");
|
||||
@@ -124,6 +138,8 @@ namespace DiscImageChef.Database.Migrations
|
||||
|
||||
b.Property<ushort?>("BlocksPerReadableUnit");
|
||||
|
||||
b.Property<short?>("BlocksPerReadableUnitSql");
|
||||
|
||||
b.Property<bool>("BufferUnderrunFreeInDVD");
|
||||
|
||||
b.Property<bool>("BufferUnderrunFreeInSAO");
|
||||
@@ -320,12 +336,14 @@ namespace DiscImageChef.Database.Migrations
|
||||
|
||||
b.Property<uint?>("LogicalBlockSize");
|
||||
|
||||
b.Property<int?>("LogicalBlockSizeSql");
|
||||
|
||||
b.Property<bool>("MultiRead");
|
||||
|
||||
b.Property<uint?>("PhysicalInterfaceStandard");
|
||||
|
||||
b.Property<uint?>("PhysicalInterfaceStandardNumber");
|
||||
|
||||
b.Property<int?>("PhysicalInterfaceStandardNumberSql");
|
||||
|
||||
b.Property<bool>("PreventJumper");
|
||||
|
||||
b.Property<bool>("SupportsAACS");
|
||||
@@ -364,6 +382,8 @@ namespace DiscImageChef.Database.Migrations
|
||||
|
||||
b.Property<ushort?>("VolumeLevels");
|
||||
|
||||
b.Property<short?>("VolumeLevelsSql");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("MmcFeatures");
|
||||
@@ -396,12 +416,16 @@ namespace DiscImageChef.Database.Migrations
|
||||
|
||||
b.Property<ushort?>("CardCode");
|
||||
|
||||
b.Property<short?>("CardCodeSql");
|
||||
|
||||
b.Property<string>("Compliance");
|
||||
|
||||
b.Property<string>("Manufacturer");
|
||||
|
||||
b.Property<ushort?>("ManufacturerCode");
|
||||
|
||||
b.Property<short?>("ManufacturerCodeSql");
|
||||
|
||||
b.Property<string>("ProductName");
|
||||
|
||||
b.HasKey("Id");
|
||||
@@ -498,8 +522,12 @@ namespace DiscImageChef.Database.Migrations
|
||||
|
||||
b.Property<uint?>("MaxBlockLength");
|
||||
|
||||
b.Property<int?>("MaxBlockLengthSql");
|
||||
|
||||
b.Property<uint?>("MinBlockLength");
|
||||
|
||||
b.Property<int?>("MinBlockLengthSql");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Ssc");
|
||||
@@ -513,6 +541,8 @@ namespace DiscImageChef.Database.Migrations
|
||||
|
||||
b.Property<ushort>("Length");
|
||||
|
||||
b.Property<short>("LengthSql");
|
||||
|
||||
b.Property<byte>("MediumType");
|
||||
|
||||
b.Property<string>("Name");
|
||||
@@ -525,6 +555,8 @@ namespace DiscImageChef.Database.Migrations
|
||||
|
||||
b.Property<ushort>("Width");
|
||||
|
||||
b.Property<short>("WidthSql");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("SscId");
|
||||
@@ -540,8 +572,12 @@ namespace DiscImageChef.Database.Migrations
|
||||
|
||||
b.Property<uint>("BitsPerMm");
|
||||
|
||||
b.Property<int>("BitsPerMmSql");
|
||||
|
||||
b.Property<uint>("Capacity");
|
||||
|
||||
b.Property<int>("CapacitySql");
|
||||
|
||||
b.Property<bool>("DefaultDensity");
|
||||
|
||||
b.Property<string>("Description");
|
||||
@@ -562,8 +598,12 @@ namespace DiscImageChef.Database.Migrations
|
||||
|
||||
b.Property<ushort>("Tracks");
|
||||
|
||||
b.Property<short>("TracksSql");
|
||||
|
||||
b.Property<ushort>("Width");
|
||||
|
||||
b.Property<short>("WidthSql");
|
||||
|
||||
b.Property<bool>("Writable");
|
||||
|
||||
b.HasKey("Id");
|
||||
@@ -583,8 +623,12 @@ namespace DiscImageChef.Database.Migrations
|
||||
|
||||
b.Property<uint?>("BlockSize");
|
||||
|
||||
b.Property<int?>("BlockSizeSql");
|
||||
|
||||
b.Property<ulong?>("Blocks");
|
||||
|
||||
b.Property<long?>("BlocksSql");
|
||||
|
||||
b.Property<int?>("CHSId");
|
||||
|
||||
b.Property<bool?>("CanReadAACS");
|
||||
@@ -657,12 +701,20 @@ namespace DiscImageChef.Database.Migrations
|
||||
|
||||
b.Property<ulong?>("LBA48Sectors");
|
||||
|
||||
b.Property<long?>("LBA48SectorsSql");
|
||||
|
||||
b.Property<uint?>("LBASectors");
|
||||
|
||||
b.Property<int?>("LBASectorsSql");
|
||||
|
||||
b.Property<ushort?>("LogicalAlignment");
|
||||
|
||||
b.Property<short?>("LogicalAlignmentSql");
|
||||
|
||||
b.Property<uint?>("LongBlockSize");
|
||||
|
||||
b.Property<int?>("LongBlockSizeSql");
|
||||
|
||||
b.Property<string>("Manufacturer");
|
||||
|
||||
b.Property<bool>("MediaIsRecognized");
|
||||
@@ -681,8 +733,12 @@ namespace DiscImageChef.Database.Migrations
|
||||
|
||||
b.Property<ushort?>("NominalRotationRate");
|
||||
|
||||
b.Property<short?>("NominalRotationRateSql");
|
||||
|
||||
b.Property<uint?>("PhysicalBlockSize");
|
||||
|
||||
b.Property<int?>("PhysicalBlockSizeSql");
|
||||
|
||||
b.Property<int?>("ScsiId");
|
||||
|
||||
b.Property<bool?>("SolidStateDevice");
|
||||
@@ -755,8 +811,12 @@ namespace DiscImageChef.Database.Migrations
|
||||
|
||||
b.Property<ushort?>("UnformattedBPS");
|
||||
|
||||
b.Property<short?>("UnformattedBPSSql");
|
||||
|
||||
b.Property<ushort?>("UnformattedBPT");
|
||||
|
||||
b.Property<short?>("UnformattedBPTSql");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("AtaId");
|
||||
@@ -815,10 +875,14 @@ namespace DiscImageChef.Database.Migrations
|
||||
|
||||
b.Property<ushort>("ProductID");
|
||||
|
||||
b.Property<short>("ProductIDSql");
|
||||
|
||||
b.Property<bool>("RemovableMedia");
|
||||
|
||||
b.Property<ushort>("VendorID");
|
||||
|
||||
b.Property<short>("VendorIDSql");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Usb");
|
||||
|
||||
Reference in New Issue
Block a user