mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Remove signed fields.
This commit is contained in:
Submodule DiscImageChef.CommonTypes updated: 51d4c0e87a...8505b00e04
@@ -65,7 +65,7 @@ namespace DiscImageChef.Server.Controllers
|
|||||||
|
|
||||||
sync.UsbVendors = new List<UsbVendorDto>();
|
sync.UsbVendors = new List<UsbVendorDto>();
|
||||||
foreach (var vendor in _ctx.UsbVendors.Where(v => v.ModifiedWhen > lastSync))
|
foreach (var vendor in _ctx.UsbVendors.Where(v => v.ModifiedWhen > lastSync))
|
||||||
sync.UsbVendors.Add(new UsbVendorDto {VendorId = (ushort) vendor.VendorId, Vendor = vendor.Vendor});
|
sync.UsbVendors.Add(new UsbVendorDto {VendorId = vendor.VendorId, Vendor = vendor.Vendor});
|
||||||
|
|
||||||
sync.UsbProducts = new List<UsbProductDto>();
|
sync.UsbProducts = new List<UsbProductDto>();
|
||||||
foreach (var product in _ctx.UsbProducts.Include(p => p.Vendor).Where(p => p.ModifiedWhen > lastSync))
|
foreach (var product in _ctx.UsbProducts.Include(p => p.Vendor).Where(p => p.ModifiedWhen > lastSync))
|
||||||
@@ -73,8 +73,8 @@ namespace DiscImageChef.Server.Controllers
|
|||||||
{
|
{
|
||||||
Id = product.Id,
|
Id = product.Id,
|
||||||
Product = product.Product,
|
Product = product.Product,
|
||||||
ProductId = (ushort) product.ProductId,
|
ProductId = product.ProductId,
|
||||||
VendorId = (ushort) product.Vendor.VendorId
|
VendorId = product.Vendor.VendorId
|
||||||
});
|
});
|
||||||
|
|
||||||
sync.Offsets = new List<CdOffsetDto>();
|
sync.Offsets = new List<CdOffsetDto>();
|
||||||
|
|||||||
1999
DiscImageChef.Server/Migrations/20191102231633_MakeFieldsUnsigned.Designer.cs
generated
Normal file
1999
DiscImageChef.Server/Migrations/20191102231633_MakeFieldsUnsigned.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,384 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
namespace DiscImageChef.Server.Migrations
|
||||||
|
{
|
||||||
|
public partial class MakeFieldsUnsigned : Migration
|
||||||
|
{
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "ProductIDSql",
|
||||||
|
table: "Usb");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "VendorIDSql",
|
||||||
|
table: "Usb");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "BlockSizeSql",
|
||||||
|
table: "TestedMedia");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "BlocksSql",
|
||||||
|
table: "TestedMedia");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "LBA48SectorsSql",
|
||||||
|
table: "TestedMedia");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "LBASectorsSql",
|
||||||
|
table: "TestedMedia");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "LogicalAlignmentSql",
|
||||||
|
table: "TestedMedia");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "LongBlockSizeSql",
|
||||||
|
table: "TestedMedia");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "NominalRotationRateSql",
|
||||||
|
table: "TestedMedia");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "PhysicalBlockSizeSql",
|
||||||
|
table: "TestedMedia");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "UnformattedBPSSql",
|
||||||
|
table: "TestedMedia");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "UnformattedBPTSql",
|
||||||
|
table: "TestedMedia");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "BitsPerMmSql",
|
||||||
|
table: "SupportedDensity");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "CapacitySql",
|
||||||
|
table: "SupportedDensity");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "TracksSql",
|
||||||
|
table: "SupportedDensity");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "WidthSql",
|
||||||
|
table: "SupportedDensity");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "LengthSql",
|
||||||
|
table: "SscSupportedMedia");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "WidthSql",
|
||||||
|
table: "SscSupportedMedia");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "MaxBlockLengthSql",
|
||||||
|
table: "Ssc");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "MinBlockLengthSql",
|
||||||
|
table: "Ssc");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "CardCodeSql",
|
||||||
|
table: "Pcmcia");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "ManufacturerCodeSql",
|
||||||
|
table: "Pcmcia");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "BlocksPerReadableUnitSql",
|
||||||
|
table: "MmcFeatures");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "LogicalBlockSizeSql",
|
||||||
|
table: "MmcFeatures");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "PhysicalInterfaceStandardNumberSql",
|
||||||
|
table: "MmcFeatures");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "VolumeLevelsSql",
|
||||||
|
table: "MmcFeatures");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "ProductIDSql",
|
||||||
|
table: "FireWire");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "VendorIDSql",
|
||||||
|
table: "FireWire");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "CylindersSql",
|
||||||
|
table: "Chs");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "HeadsSql",
|
||||||
|
table: "Chs");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "SectorsSql",
|
||||||
|
table: "Chs");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "BlockLengthSql",
|
||||||
|
table: "BlockDescriptor");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "BlocksSql",
|
||||||
|
table: "BlockDescriptor");
|
||||||
|
|
||||||
|
migrationBuilder.AlterColumn<ushort>(
|
||||||
|
name: "VendorId",
|
||||||
|
table: "UsbVendors",
|
||||||
|
nullable: false,
|
||||||
|
oldClrType: typeof(int),
|
||||||
|
oldType: "int");
|
||||||
|
|
||||||
|
migrationBuilder.AlterColumn<ushort>(
|
||||||
|
name: "ProductId",
|
||||||
|
table: "UsbProducts",
|
||||||
|
nullable: false,
|
||||||
|
oldClrType: typeof(int),
|
||||||
|
oldType: "int");
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AlterColumn<int>(
|
||||||
|
name: "VendorId",
|
||||||
|
table: "UsbVendors",
|
||||||
|
type: "int",
|
||||||
|
nullable: false,
|
||||||
|
oldClrType: typeof(ushort));
|
||||||
|
|
||||||
|
migrationBuilder.AlterColumn<int>(
|
||||||
|
name: "ProductId",
|
||||||
|
table: "UsbProducts",
|
||||||
|
type: "int",
|
||||||
|
nullable: false,
|
||||||
|
oldClrType: typeof(ushort));
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<short>(
|
||||||
|
name: "ProductIDSql",
|
||||||
|
table: "Usb",
|
||||||
|
type: "smallint",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: (short)0);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<short>(
|
||||||
|
name: "VendorIDSql",
|
||||||
|
table: "Usb",
|
||||||
|
type: "smallint",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: (short)0);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<int>(
|
||||||
|
name: "BlockSizeSql",
|
||||||
|
table: "TestedMedia",
|
||||||
|
type: "int",
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<long>(
|
||||||
|
name: "BlocksSql",
|
||||||
|
table: "TestedMedia",
|
||||||
|
type: "bigint",
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<long>(
|
||||||
|
name: "LBA48SectorsSql",
|
||||||
|
table: "TestedMedia",
|
||||||
|
type: "bigint",
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<int>(
|
||||||
|
name: "LBASectorsSql",
|
||||||
|
table: "TestedMedia",
|
||||||
|
type: "int",
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<short>(
|
||||||
|
name: "LogicalAlignmentSql",
|
||||||
|
table: "TestedMedia",
|
||||||
|
type: "smallint",
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<int>(
|
||||||
|
name: "LongBlockSizeSql",
|
||||||
|
table: "TestedMedia",
|
||||||
|
type: "int",
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<short>(
|
||||||
|
name: "NominalRotationRateSql",
|
||||||
|
table: "TestedMedia",
|
||||||
|
type: "smallint",
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<int>(
|
||||||
|
name: "PhysicalBlockSizeSql",
|
||||||
|
table: "TestedMedia",
|
||||||
|
type: "int",
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<short>(
|
||||||
|
name: "UnformattedBPSSql",
|
||||||
|
table: "TestedMedia",
|
||||||
|
type: "smallint",
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<short>(
|
||||||
|
name: "UnformattedBPTSql",
|
||||||
|
table: "TestedMedia",
|
||||||
|
type: "smallint",
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<int>(
|
||||||
|
name: "BitsPerMmSql",
|
||||||
|
table: "SupportedDensity",
|
||||||
|
type: "int",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: 0);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<int>(
|
||||||
|
name: "CapacitySql",
|
||||||
|
table: "SupportedDensity",
|
||||||
|
type: "int",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: 0);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<short>(
|
||||||
|
name: "TracksSql",
|
||||||
|
table: "SupportedDensity",
|
||||||
|
type: "smallint",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: (short)0);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<short>(
|
||||||
|
name: "WidthSql",
|
||||||
|
table: "SupportedDensity",
|
||||||
|
type: "smallint",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: (short)0);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<short>(
|
||||||
|
name: "LengthSql",
|
||||||
|
table: "SscSupportedMedia",
|
||||||
|
type: "smallint",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: (short)0);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<short>(
|
||||||
|
name: "WidthSql",
|
||||||
|
table: "SscSupportedMedia",
|
||||||
|
type: "smallint",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: (short)0);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<int>(
|
||||||
|
name: "MaxBlockLengthSql",
|
||||||
|
table: "Ssc",
|
||||||
|
type: "int",
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<int>(
|
||||||
|
name: "MinBlockLengthSql",
|
||||||
|
table: "Ssc",
|
||||||
|
type: "int",
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<short>(
|
||||||
|
name: "CardCodeSql",
|
||||||
|
table: "Pcmcia",
|
||||||
|
type: "smallint",
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<short>(
|
||||||
|
name: "ManufacturerCodeSql",
|
||||||
|
table: "Pcmcia",
|
||||||
|
type: "smallint",
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<short>(
|
||||||
|
name: "BlocksPerReadableUnitSql",
|
||||||
|
table: "MmcFeatures",
|
||||||
|
type: "smallint",
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<int>(
|
||||||
|
name: "LogicalBlockSizeSql",
|
||||||
|
table: "MmcFeatures",
|
||||||
|
type: "int",
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<int>(
|
||||||
|
name: "PhysicalInterfaceStandardNumberSql",
|
||||||
|
table: "MmcFeatures",
|
||||||
|
type: "int",
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<short>(
|
||||||
|
name: "VolumeLevelsSql",
|
||||||
|
table: "MmcFeatures",
|
||||||
|
type: "smallint",
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<int>(
|
||||||
|
name: "ProductIDSql",
|
||||||
|
table: "FireWire",
|
||||||
|
type: "int",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: 0);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<int>(
|
||||||
|
name: "VendorIDSql",
|
||||||
|
table: "FireWire",
|
||||||
|
type: "int",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: 0);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<short>(
|
||||||
|
name: "CylindersSql",
|
||||||
|
table: "Chs",
|
||||||
|
type: "smallint",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: (short)0);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<short>(
|
||||||
|
name: "HeadsSql",
|
||||||
|
table: "Chs",
|
||||||
|
type: "smallint",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: (short)0);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<short>(
|
||||||
|
name: "SectorsSql",
|
||||||
|
table: "Chs",
|
||||||
|
type: "smallint",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: (short)0);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<int>(
|
||||||
|
name: "BlockLengthSql",
|
||||||
|
table: "BlockDescriptor",
|
||||||
|
type: "int",
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<long>(
|
||||||
|
name: "BlocksSql",
|
||||||
|
table: "BlockDescriptor",
|
||||||
|
type: "bigint",
|
||||||
|
nullable: true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -52,7 +52,7 @@ namespace DiscImageChef.Server.Models
|
|||||||
|
|
||||||
[Key] public int Id { get; set; }
|
[Key] public int Id { get; set; }
|
||||||
|
|
||||||
public int ProductId { get; set; }
|
public ushort ProductId { get; set; }
|
||||||
public string Product { get; set; }
|
public string Product { get; set; }
|
||||||
public DateTime AddedWhen { get; set; }
|
public DateTime AddedWhen { get; set; }
|
||||||
public DateTime ModifiedWhen { get; set; }
|
public DateTime ModifiedWhen { get; set; }
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ namespace DiscImageChef.Server.Models
|
|||||||
|
|
||||||
[Key] public int Id { get; set; }
|
[Key] public int Id { get; set; }
|
||||||
|
|
||||||
public int VendorId { get; set; }
|
public ushort VendorId { get; set; }
|
||||||
public string Vendor { get; set; }
|
public string Vendor { get; set; }
|
||||||
public DateTime AddedWhen { get; set; }
|
public DateTime AddedWhen { get; set; }
|
||||||
public DateTime ModifiedWhen { get; set; }
|
public DateTime ModifiedWhen { get; set; }
|
||||||
|
|||||||
Reference in New Issue
Block a user