Store and use undecoded buffers for ATA IDENTIFY (PACKET) DEVICE, SCSI INQUIRY and SCSI MODE PAGE 2Ah in device reports in database.

This commit is contained in:
2018-12-23 23:51:06 +00:00
parent ded1e9a70b
commit 994ea2bc80
20 changed files with 1699 additions and 211 deletions

View File

@@ -287,17 +287,13 @@ namespace DiscImageChef.Database.Migrations
{
Id = table.Column<int>(nullable: false)
.Annotation("Sqlite:Autoincrement", true),
ModeSense2AId = table.Column<int>(nullable: true),
FeaturesId = table.Column<int>(nullable: true)
FeaturesId = table.Column<int>(nullable: true)
}, constraints: table =>
{
table.PrimaryKey("PK_Mmc", x => x.Id);
table.ForeignKey("FK_Mmc_MmcFeatures_FeaturesId", x => x.FeaturesId,
"MmcFeatures", "Id",
onDelete: ReferentialAction.Restrict);
table.ForeignKey("FK_Mmc_ModePage_2A_ModeSense2AId", x => x.ModeSense2AId,
"ModePage_2A", "Id",
onDelete: ReferentialAction.Restrict);
});
migrationBuilder.CreateTable("BlockDescriptor",
@@ -626,8 +622,6 @@ namespace DiscImageChef.Database.Migrations
migrationBuilder.CreateIndex("IX_Mmc_FeaturesId", "Mmc", "FeaturesId");
migrationBuilder.CreateIndex("IX_Mmc_ModeSense2AId", "Mmc", "ModeSense2AId");
migrationBuilder.CreateIndex("IX_Reports_ATAId", "Reports", "ATAId");
migrationBuilder.CreateIndex("IX_Reports_ATAPIId", "Reports", "ATAPIId");