mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Store MMC GET CONFIGURATION response in device report.
This commit is contained in:
1427
DiscImageChef.Database/Migrations/20181225152947_StoreMmcGetConfigurationResponse.Designer.cs
generated
Normal file
1427
DiscImageChef.Database/Migrations/20181225152947_StoreMmcGetConfigurationResponse.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,30 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace DiscImageChef.Database.Migrations
|
||||
{
|
||||
// TODO: Find how to permanently create indexes
|
||||
public partial class StoreMmcGetConfigurationResponse : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropIndex("IX_UsbVendors_ModifiedWhen", "UsbVendors");
|
||||
|
||||
migrationBuilder.DropIndex("IX_UsbProducts_ModifiedWhen", "UsbProducts");
|
||||
|
||||
migrationBuilder.DropIndex("IX_UsbProducts_ProductId", "UsbProducts");
|
||||
|
||||
migrationBuilder.AddColumn<byte[]>("BinaryData", "MmcFeatures", nullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn("BinaryData", "MmcFeatures");
|
||||
|
||||
migrationBuilder.CreateIndex("IX_UsbVendors_ModifiedWhen", "UsbVendors", "ModifiedWhen");
|
||||
|
||||
migrationBuilder.CreateIndex("IX_UsbProducts_ModifiedWhen", "UsbProducts", "ModifiedWhen");
|
||||
|
||||
migrationBuilder.CreateIndex("IX_UsbProducts_ProductId", "UsbProducts", "ProductId");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -132,6 +132,8 @@ namespace DiscImageChef.Database.Migrations
|
||||
|
||||
b.Property<byte?>("AGIDs");
|
||||
|
||||
b.Property<byte[]>("BinaryData");
|
||||
|
||||
b.Property<byte?>("BindingNonceBlocks");
|
||||
|
||||
b.Property<ushort?>("BlocksPerReadableUnit");
|
||||
@@ -1163,10 +1165,6 @@ namespace DiscImageChef.Database.Migrations
|
||||
|
||||
b.HasIndex("VendorId");
|
||||
|
||||
b.HasIndex("ProductId");
|
||||
|
||||
b.HasIndex("ModifiedWhen");
|
||||
|
||||
b.ToTable("UsbProducts");
|
||||
});
|
||||
|
||||
@@ -1182,8 +1180,6 @@ namespace DiscImageChef.Database.Migrations
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("ModifiedWhen");
|
||||
|
||||
b.ToTable("UsbVendors");
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user