2018-12-31 13:17:27 +00:00
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
2018-12-23 23:51:06 +00:00
|
|
|
|
|
2020-02-27 00:33:26 +00:00
|
|
|
|
namespace Aaru.Database.Migrations
|
2018-12-23 23:51:06 +00:00
|
|
|
|
{
|
|
|
|
|
|
public partial class UseBinaryDataForIdentifyInquiryAndModesInReports : Migration
|
|
|
|
|
|
{
|
|
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
|
|
|
|
{
|
2018-12-31 13:17:27 +00:00
|
|
|
|
migrationBuilder.DropTable("ModePage_2A");
|
2018-12-23 23:51:06 +00:00
|
|
|
|
|
2018-12-31 13:17:27 +00:00
|
|
|
|
migrationBuilder.AddColumn<byte[]>("ModeSense2AData", "Mmc", nullable: true);
|
2018-12-23 23:51:06 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
|
|
|
|
{
|
2018-12-31 13:17:27 +00:00
|
|
|
|
migrationBuilder.DropColumn("ModeSense2AData", "Mmc");
|
2018-12-23 23:51:06 +00:00
|
|
|
|
|
2020-02-29 18:03:35 +00:00
|
|
|
|
migrationBuilder.CreateTable("ModePage_2A", table => new
|
|
|
|
|
|
{
|
|
|
|
|
|
Id = table.Column<int>().Annotation("Sqlite:Autoincrement", true),
|
|
|
|
|
|
AccurateCDDA = table.Column<bool>(),
|
|
|
|
|
|
AudioPlay = table.Column<bool>(),
|
2020-07-20 04:34:16 +01:00
|
|
|
|
BCK = table.Column<bool>(),
|
|
|
|
|
|
BUF = table.Column<bool>(),
|
2020-02-29 18:03:35 +00:00
|
|
|
|
BufferSize = table.Column<ushort>(),
|
|
|
|
|
|
C2Pointer = table.Column<bool>(),
|
|
|
|
|
|
CDDACommand = table.Column<bool>(),
|
|
|
|
|
|
CMRSupported = table.Column<ushort>(),
|
|
|
|
|
|
Composite = table.Column<bool>(),
|
|
|
|
|
|
CurrentSpeed = table.Column<ushort>(),
|
|
|
|
|
|
CurrentWriteSpeed = table.Column<ushort>(),
|
|
|
|
|
|
CurrentWriteSpeedSelected = table.Column<ushort>(),
|
|
|
|
|
|
DeinterlaveSubchannel = table.Column<bool>(),
|
|
|
|
|
|
DigitalPort1 = table.Column<bool>(),
|
|
|
|
|
|
DigitalPort2 = table.Column<bool>(),
|
|
|
|
|
|
Eject = table.Column<bool>(),
|
|
|
|
|
|
ISRC = table.Column<bool>(),
|
|
|
|
|
|
LSBF = table.Column<bool>(),
|
|
|
|
|
|
LeadInPW = table.Column<bool>(),
|
|
|
|
|
|
Length = table.Column<byte>(),
|
|
|
|
|
|
LoadingMechanism = table.Column<byte>(),
|
|
|
|
|
|
Lock = table.Column<bool>(),
|
|
|
|
|
|
LockState = table.Column<bool>(),
|
|
|
|
|
|
MaxWriteSpeed = table.Column<ushort>(),
|
|
|
|
|
|
MaximumSpeed = table.Column<ushort>(),
|
|
|
|
|
|
Method2 = table.Column<bool>(),
|
|
|
|
|
|
Mode2Form1 = table.Column<bool>(),
|
|
|
|
|
|
Mode2Form2 = table.Column<bool>(),
|
|
|
|
|
|
MultiSession = table.Column<bool>(),
|
|
|
|
|
|
PS = table.Column<bool>(),
|
|
|
|
|
|
PreventJumper = table.Column<bool>(),
|
|
|
|
|
|
RCK = table.Column<bool>(),
|
|
|
|
|
|
ReadBarcode = table.Column<bool>(),
|
|
|
|
|
|
ReadCDR = table.Column<bool>(),
|
|
|
|
|
|
ReadCDRW = table.Column<bool>(),
|
|
|
|
|
|
ReadDVDR = table.Column<bool>(),
|
|
|
|
|
|
ReadDVDRAM = table.Column<bool>(),
|
|
|
|
|
|
ReadDVDROM = table.Column<bool>(),
|
|
|
|
|
|
RotationControlSelected = table.Column<byte>(),
|
|
|
|
|
|
SCC = table.Column<bool>(),
|
2020-07-20 04:34:16 +01:00
|
|
|
|
SDP = table.Column<bool>(),
|
|
|
|
|
|
SSS = table.Column<bool>(),
|
2020-02-29 18:03:35 +00:00
|
|
|
|
SeparateChannelMute = table.Column<bool>(),
|
|
|
|
|
|
SeparateChannelVolume = table.Column<bool>(),
|
|
|
|
|
|
Subchannel = table.Column<bool>(),
|
|
|
|
|
|
SupportedVolumeLevels = table.Column<ushort>(),
|
|
|
|
|
|
TestWrite = table.Column<bool>(),
|
|
|
|
|
|
UPC = table.Column<bool>(),
|
|
|
|
|
|
WriteCDR = table.Column<bool>(),
|
|
|
|
|
|
WriteCDRW = table.Column<bool>(),
|
|
|
|
|
|
WriteDVDR = table.Column<bool>(),
|
|
|
|
|
|
WriteDVDRAM = table.Column<bool>()
|
|
|
|
|
|
}, constraints: table =>
|
|
|
|
|
|
{
|
|
|
|
|
|
table.PrimaryKey("PK_ModePage_2A", x => x.Id);
|
|
|
|
|
|
});
|
2018-12-23 23:51:06 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2018-12-31 13:17:27 +00:00
|
|
|
|
}
|