mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Migrate to .NET Core 3.0.
This commit is contained in:
@@ -1,29 +0,0 @@
|
||||
// <auto-generated />
|
||||
namespace DiscImageChef.Server.Migrations
|
||||
{
|
||||
using System.CodeDom.Compiler;
|
||||
using System.Data.Entity.Migrations;
|
||||
using System.Data.Entity.Migrations.Infrastructure;
|
||||
using System.Resources;
|
||||
|
||||
[GeneratedCode("EntityFramework.Migrations", "6.2.0-61023")]
|
||||
public sealed partial class InitialMigration : IMigrationMetadata
|
||||
{
|
||||
private readonly ResourceManager Resources = new ResourceManager(typeof(InitialMigration));
|
||||
|
||||
string IMigrationMetadata.Id
|
||||
{
|
||||
get { return "201812201613369_InitialMigration"; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Source
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Target
|
||||
{
|
||||
get { return Resources.GetString("Target"); }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,584 +0,0 @@
|
||||
using System.Data.Entity.Migrations;
|
||||
|
||||
namespace DiscImageChef.Server.Migrations
|
||||
{
|
||||
public partial class InitialMigration : DbMigration
|
||||
{
|
||||
public override void Up()
|
||||
{
|
||||
CreateTable("dbo.Devices",
|
||||
c => new
|
||||
{
|
||||
Id = c.Int(false, true),
|
||||
AddedWhen = c.DateTime(false, 0),
|
||||
CompactFlash = c.Boolean(false),
|
||||
Manufacturer = c.String(unicode: false),
|
||||
Model = c.String(unicode: false),
|
||||
Revision = c.String(unicode: false),
|
||||
Type = c.Int(false),
|
||||
ATA_Id = c.Int(),
|
||||
ATAPI_Id = c.Int(),
|
||||
FireWire_Id = c.Int(),
|
||||
MultiMediaCard_Id = c.Int(),
|
||||
PCMCIA_Id = c.Int(),
|
||||
SCSI_Id = c.Int(),
|
||||
SecureDigital_Id = c.Int(),
|
||||
USB_Id = c.Int()
|
||||
}).PrimaryKey(t => t.Id).ForeignKey("dbo.Atas", t => t.ATA_Id)
|
||||
.ForeignKey("dbo.Atas", t => t.ATAPI_Id).ForeignKey("dbo.FireWires", t => t.FireWire_Id)
|
||||
.ForeignKey("dbo.MmcSds", t => t.MultiMediaCard_Id)
|
||||
.ForeignKey("dbo.Pcmcias", t => t.PCMCIA_Id).ForeignKey("dbo.Scsis", t => t.SCSI_Id)
|
||||
.ForeignKey("dbo.MmcSds", t => t.SecureDigital_Id).ForeignKey("dbo.Usbs", t => t.USB_Id)
|
||||
.Index(t => t.ATA_Id).Index(t => t.ATAPI_Id).Index(t => t.FireWire_Id)
|
||||
.Index(t => t.MultiMediaCard_Id).Index(t => t.PCMCIA_Id).Index(t => t.SCSI_Id)
|
||||
.Index(t => t.SecureDigital_Id).Index(t => t.USB_Id);
|
||||
|
||||
CreateTable("dbo.Atas",
|
||||
c => new {Id = c.Int(false, true), Identify = c.Binary(), ReadCapabilities_Id = c.Int()})
|
||||
.PrimaryKey(t => t.Id).ForeignKey("dbo.TestedMedias", t => t.ReadCapabilities_Id)
|
||||
.Index(t => t.ReadCapabilities_Id);
|
||||
|
||||
CreateTable("dbo.TestedMedias",
|
||||
c => new
|
||||
{
|
||||
Id = c.Int(false, true),
|
||||
IdentifyData = c.Binary(),
|
||||
CanReadAACS = c.Boolean(),
|
||||
CanReadADIP = c.Boolean(),
|
||||
CanReadATIP = c.Boolean(),
|
||||
CanReadBCA = c.Boolean(),
|
||||
CanReadC2Pointers = c.Boolean(),
|
||||
CanReadCMI = c.Boolean(),
|
||||
CanReadCorrectedSubchannel = c.Boolean(),
|
||||
CanReadCorrectedSubchannelWithC2 = c.Boolean(),
|
||||
CanReadDCB = c.Boolean(),
|
||||
CanReadDDS = c.Boolean(),
|
||||
CanReadDMI = c.Boolean(),
|
||||
CanReadDiscInformation = c.Boolean(),
|
||||
CanReadFullTOC = c.Boolean(),
|
||||
CanReadHDCMI = c.Boolean(),
|
||||
CanReadLayerCapacity = c.Boolean(),
|
||||
CanReadFirstTrackPreGap = c.Boolean(),
|
||||
CanReadLeadIn = c.Boolean(),
|
||||
CanReadLeadOut = c.Boolean(),
|
||||
CanReadMediaID = c.Boolean(),
|
||||
CanReadMediaSerial = c.Boolean(),
|
||||
CanReadPAC = c.Boolean(),
|
||||
CanReadPFI = c.Boolean(),
|
||||
CanReadPMA = c.Boolean(),
|
||||
CanReadPQSubchannel = c.Boolean(),
|
||||
CanReadPQSubchannelWithC2 = c.Boolean(),
|
||||
CanReadPRI = c.Boolean(),
|
||||
CanReadRWSubchannel = c.Boolean(),
|
||||
CanReadRWSubchannelWithC2 = c.Boolean(),
|
||||
CanReadRecordablePFI = c.Boolean(),
|
||||
CanReadSpareAreaInformation = c.Boolean(),
|
||||
CanReadTOC = c.Boolean(),
|
||||
Density = c.Byte(),
|
||||
Manufacturer = c.String(unicode: false),
|
||||
MediaIsRecognized = c.Boolean(false),
|
||||
MediumType = c.Byte(),
|
||||
MediumTypeName = c.String(unicode: false),
|
||||
Model = c.String(unicode: false),
|
||||
SupportsHLDTSTReadRawDVD = c.Boolean(),
|
||||
SupportsNECReadCDDA = c.Boolean(),
|
||||
SupportsPioneerReadCDDA = c.Boolean(),
|
||||
SupportsPioneerReadCDDAMSF = c.Boolean(),
|
||||
SupportsPlextorReadCDDA = c.Boolean(),
|
||||
SupportsPlextorReadRawDVD = c.Boolean(),
|
||||
SupportsRead10 = c.Boolean(),
|
||||
SupportsRead12 = c.Boolean(),
|
||||
SupportsRead16 = c.Boolean(),
|
||||
SupportsRead6 = c.Boolean(),
|
||||
SupportsReadCapacity16 = c.Boolean(),
|
||||
SupportsReadCapacity = c.Boolean(),
|
||||
SupportsReadCd = c.Boolean(),
|
||||
SupportsReadCdMsf = c.Boolean(),
|
||||
SupportsReadCdRaw = c.Boolean(),
|
||||
SupportsReadCdMsfRaw = c.Boolean(),
|
||||
SupportsReadLong16 = c.Boolean(),
|
||||
SupportsReadLong = c.Boolean(),
|
||||
ModeSense6Data = c.Binary(),
|
||||
ModeSense10Data = c.Binary(),
|
||||
SolidStateDevice = c.Boolean(),
|
||||
SupportsReadDmaLba = c.Boolean(),
|
||||
SupportsReadDmaRetryLba = c.Boolean(),
|
||||
SupportsReadLba = c.Boolean(),
|
||||
SupportsReadRetryLba = c.Boolean(),
|
||||
SupportsReadLongLba = c.Boolean(),
|
||||
SupportsReadLongRetryLba = c.Boolean(),
|
||||
SupportsSeekLba = c.Boolean(),
|
||||
SupportsReadDmaLba48 = c.Boolean(),
|
||||
SupportsReadLba48 = c.Boolean(),
|
||||
SupportsReadDma = c.Boolean(),
|
||||
SupportsReadDmaRetry = c.Boolean(),
|
||||
SupportsReadRetry = c.Boolean(),
|
||||
SupportsReadSectors = c.Boolean(),
|
||||
SupportsReadLongRetry = c.Boolean(),
|
||||
SupportsSeek = c.Boolean(),
|
||||
CHS_Id = c.Int(),
|
||||
CurrentCHS_Id = c.Int(),
|
||||
Ata_Id = c.Int(),
|
||||
Mmc_Id = c.Int(),
|
||||
Scsi_Id = c.Int()
|
||||
}).PrimaryKey(t => t.Id).ForeignKey("dbo.Chs", t => t.CHS_Id)
|
||||
.ForeignKey("dbo.Chs", t => t.CurrentCHS_Id).ForeignKey("dbo.Atas", t => t.Ata_Id)
|
||||
.ForeignKey("dbo.Mmcs", t => t.Mmc_Id).ForeignKey("dbo.Scsis", t => t.Scsi_Id)
|
||||
.Index(t => t.CHS_Id).Index(t => t.CurrentCHS_Id).Index(t => t.Ata_Id)
|
||||
.Index(t => t.Mmc_Id).Index(t => t.Scsi_Id);
|
||||
|
||||
CreateTable("dbo.Chs", c => new {Id = c.Int(false, true)}).PrimaryKey(t => t.Id);
|
||||
|
||||
CreateTable("dbo.FireWires",
|
||||
c => new
|
||||
{
|
||||
Id = c.Int(false, true),
|
||||
Manufacturer = c.String(unicode: false),
|
||||
Product = c.String(unicode: false),
|
||||
RemovableMedia = c.Boolean(false)
|
||||
}).PrimaryKey(t => t.Id);
|
||||
|
||||
CreateTable("dbo.MmcSds",
|
||||
c => new
|
||||
{
|
||||
Id = c.Int(false, true),
|
||||
CID = c.Binary(),
|
||||
CSD = c.Binary(),
|
||||
OCR = c.Binary(),
|
||||
SCR = c.Binary(),
|
||||
ExtendedCSD = c.Binary()
|
||||
}).PrimaryKey(t => t.Id);
|
||||
|
||||
CreateTable("dbo.Pcmcias",
|
||||
c => new
|
||||
{
|
||||
Id = c.Int(false, true),
|
||||
CIS = c.Binary(),
|
||||
Compliance = c.String(unicode: false),
|
||||
Manufacturer = c.String(unicode: false),
|
||||
ProductName = c.String(unicode: false)
|
||||
}).PrimaryKey(t => t.Id);
|
||||
|
||||
CreateTable("dbo.Scsis",
|
||||
c => new
|
||||
{
|
||||
Id = c.Int(false, true),
|
||||
InquiryData = c.Binary(),
|
||||
SupportsModeSense6 = c.Boolean(false),
|
||||
SupportsModeSense10 = c.Boolean(false),
|
||||
SupportsModeSubpages = c.Boolean(false),
|
||||
ModeSense6Data = c.Binary(),
|
||||
ModeSense10Data = c.Binary(),
|
||||
ModeSense_Id = c.Int(),
|
||||
MultiMediaDevice_Id = c.Int(),
|
||||
ReadCapabilities_Id = c.Int(),
|
||||
SequentialDevice_Id = c.Int()
|
||||
}).PrimaryKey(t => t.Id).ForeignKey("dbo.ScsiModes", t => t.ModeSense_Id)
|
||||
.ForeignKey("dbo.Mmcs", t => t.MultiMediaDevice_Id)
|
||||
.ForeignKey("dbo.TestedMedias", t => t.ReadCapabilities_Id)
|
||||
.ForeignKey("dbo.Sscs", t => t.SequentialDevice_Id).Index(t => t.ModeSense_Id)
|
||||
.Index(t => t.MultiMediaDevice_Id).Index(t => t.ReadCapabilities_Id)
|
||||
.Index(t => t.SequentialDevice_Id);
|
||||
|
||||
CreateTable("dbo.ScsiPages",
|
||||
c => new
|
||||
{
|
||||
Id = c.Int(false, true),
|
||||
page = c.Byte(false),
|
||||
subpage = c.Byte(),
|
||||
value = c.Binary(),
|
||||
Scsi_Id = c.Int(),
|
||||
ScsiMode_Id = c.Int()
|
||||
}).PrimaryKey(t => t.Id).ForeignKey("dbo.Scsis", t => t.Scsi_Id)
|
||||
.ForeignKey("dbo.ScsiModes", t => t.ScsiMode_Id).Index(t => t.Scsi_Id)
|
||||
.Index(t => t.ScsiMode_Id);
|
||||
|
||||
CreateTable("dbo.ScsiModes",
|
||||
c => new
|
||||
{
|
||||
Id = c.Int(false, true),
|
||||
MediumType = c.Byte(),
|
||||
WriteProtected = c.Boolean(false),
|
||||
Speed = c.Byte(),
|
||||
BufferedMode = c.Byte(),
|
||||
BlankCheckEnabled = c.Boolean(false),
|
||||
DPOandFUA = c.Boolean(false)
|
||||
}).PrimaryKey(t => t.Id);
|
||||
|
||||
CreateTable("dbo.BlockDescriptors",
|
||||
c => new {Id = c.Int(false, true), Density = c.Byte(false), ScsiMode_Id = c.Int()})
|
||||
.PrimaryKey(t => t.Id).ForeignKey("dbo.ScsiModes", t => t.ScsiMode_Id).Index(t => t.ScsiMode_Id);
|
||||
|
||||
CreateTable("dbo.Mmcs", c => new {Id = c.Int(false, true), Features_Id = c.Int(), ModeSense2A_Id = c.Int()})
|
||||
.PrimaryKey(t => t.Id).ForeignKey("dbo.MmcFeatures", t => t.Features_Id)
|
||||
.ForeignKey("dbo.ModePage_2A", t => t.ModeSense2A_Id).Index(t => t.Features_Id)
|
||||
.Index(t => t.ModeSense2A_Id);
|
||||
|
||||
CreateTable("dbo.MmcFeatures",
|
||||
c => new
|
||||
{
|
||||
Id = c.Int(false, true),
|
||||
AACSVersion = c.Byte(),
|
||||
AGIDs = c.Byte(),
|
||||
BindingNonceBlocks = c.Byte(),
|
||||
BufferUnderrunFreeInDVD = c.Boolean(false),
|
||||
BufferUnderrunFreeInSAO = c.Boolean(false),
|
||||
BufferUnderrunFreeInTAO = c.Boolean(false),
|
||||
CanAudioScan = c.Boolean(false),
|
||||
CanEject = c.Boolean(false),
|
||||
CanEraseSector = c.Boolean(false),
|
||||
CanExpandBDRESpareArea = c.Boolean(false),
|
||||
CanFormat = c.Boolean(false),
|
||||
CanFormatBDREWithoutSpare = c.Boolean(false),
|
||||
CanFormatCert = c.Boolean(false),
|
||||
CanFormatFRF = c.Boolean(false),
|
||||
CanFormatQCert = c.Boolean(false),
|
||||
CanFormatRRM = c.Boolean(false),
|
||||
CanGenerateBindingNonce = c.Boolean(false),
|
||||
CanLoad = c.Boolean(false),
|
||||
CanMuteSeparateChannels = c.Boolean(false),
|
||||
CanOverwriteSAOTrack = c.Boolean(false),
|
||||
CanOverwriteTAOTrack = c.Boolean(false),
|
||||
CanPlayCDAudio = c.Boolean(false),
|
||||
CanPseudoOverwriteBDR = c.Boolean(false),
|
||||
CanReadAllDualR = c.Boolean(false),
|
||||
CanReadAllDualRW = c.Boolean(false),
|
||||
CanReadBD = c.Boolean(false),
|
||||
CanReadBDR = c.Boolean(false),
|
||||
CanReadBDRE1 = c.Boolean(false),
|
||||
CanReadBDRE2 = c.Boolean(false),
|
||||
CanReadBDROM = c.Boolean(false),
|
||||
CanReadBluBCA = c.Boolean(false),
|
||||
CanReadCD = c.Boolean(false),
|
||||
CanReadCDMRW = c.Boolean(false),
|
||||
CanReadCPRM_MKB = c.Boolean(false),
|
||||
CanReadDDCD = c.Boolean(false),
|
||||
CanReadDVD = c.Boolean(false),
|
||||
CanReadDVDPlusMRW = c.Boolean(false),
|
||||
CanReadDVDPlusR = c.Boolean(false),
|
||||
CanReadDVDPlusRDL = c.Boolean(false),
|
||||
CanReadDVDPlusRW = c.Boolean(false),
|
||||
CanReadDVDPlusRWDL = c.Boolean(false),
|
||||
CanReadDriveAACSCertificate = c.Boolean(false),
|
||||
CanReadHDDVD = c.Boolean(false),
|
||||
CanReadHDDVDR = c.Boolean(false),
|
||||
CanReadHDDVDRAM = c.Boolean(false),
|
||||
CanReadLeadInCDText = c.Boolean(false),
|
||||
CanReadOldBDR = c.Boolean(false),
|
||||
CanReadOldBDRE = c.Boolean(false),
|
||||
CanReadOldBDROM = c.Boolean(false),
|
||||
CanReadSpareAreaInformation = c.Boolean(false),
|
||||
CanReportDriveSerial = c.Boolean(false),
|
||||
CanReportMediaSerial = c.Boolean(false),
|
||||
CanTestWriteDDCDR = c.Boolean(false),
|
||||
CanTestWriteDVD = c.Boolean(false),
|
||||
CanTestWriteInSAO = c.Boolean(false),
|
||||
CanTestWriteInTAO = c.Boolean(false),
|
||||
CanUpgradeFirmware = c.Boolean(false),
|
||||
CanWriteBD = c.Boolean(false),
|
||||
CanWriteBDR = c.Boolean(false),
|
||||
CanWriteBDRE1 = c.Boolean(false),
|
||||
CanWriteBDRE2 = c.Boolean(false),
|
||||
CanWriteBusEncryptedBlocks = c.Boolean(false),
|
||||
CanWriteCDMRW = c.Boolean(false),
|
||||
CanWriteCDRW = c.Boolean(false),
|
||||
CanWriteCDRWCAV = c.Boolean(false),
|
||||
CanWriteCDSAO = c.Boolean(false),
|
||||
CanWriteCDTAO = c.Boolean(false),
|
||||
CanWriteCSSManagedDVD = c.Boolean(false),
|
||||
CanWriteDDCDR = c.Boolean(false),
|
||||
CanWriteDDCDRW = c.Boolean(false),
|
||||
CanWriteDVDPlusMRW = c.Boolean(false),
|
||||
CanWriteDVDPlusR = c.Boolean(false),
|
||||
CanWriteDVDPlusRDL = c.Boolean(false),
|
||||
CanWriteDVDPlusRW = c.Boolean(false),
|
||||
CanWriteDVDPlusRWDL = c.Boolean(false),
|
||||
CanWriteDVDR = c.Boolean(false),
|
||||
CanWriteDVDRDL = c.Boolean(false),
|
||||
CanWriteDVDRW = c.Boolean(false),
|
||||
CanWriteHDDVDR = c.Boolean(false),
|
||||
CanWriteHDDVDRAM = c.Boolean(false),
|
||||
CanWriteOldBDR = c.Boolean(false),
|
||||
CanWriteOldBDRE = c.Boolean(false),
|
||||
CanWritePackedSubchannelInTAO = c.Boolean(false),
|
||||
CanWriteRWSubchannelInSAO = c.Boolean(false),
|
||||
CanWriteRWSubchannelInTAO = c.Boolean(false),
|
||||
CanWriteRaw = c.Boolean(false),
|
||||
CanWriteRawMultiSession = c.Boolean(false),
|
||||
CanWriteRawSubchannelInTAO = c.Boolean(false),
|
||||
ChangerIsSideChangeCapable = c.Boolean(false),
|
||||
ChangerSlots = c.Byte(false),
|
||||
ChangerSupportsDiscPresent = c.Boolean(false),
|
||||
CPRMVersion = c.Byte(),
|
||||
CSSVersion = c.Byte(),
|
||||
DBML = c.Boolean(false),
|
||||
DVDMultiRead = c.Boolean(false),
|
||||
EmbeddedChanger = c.Boolean(false),
|
||||
ErrorRecoveryPage = c.Boolean(false),
|
||||
FirmwareDate = c.DateTime(precision: 0),
|
||||
LoadingMechanismType = c.Byte(),
|
||||
Locked = c.Boolean(false),
|
||||
MultiRead = c.Boolean(false),
|
||||
PreventJumper = c.Boolean(false),
|
||||
SupportsAACS = c.Boolean(false),
|
||||
SupportsBusEncryption = c.Boolean(false),
|
||||
SupportsC2 = c.Boolean(false),
|
||||
SupportsCPRM = c.Boolean(false),
|
||||
SupportsCSS = c.Boolean(false),
|
||||
SupportsDAP = c.Boolean(false),
|
||||
SupportsDeviceBusyEvent = c.Boolean(false),
|
||||
SupportsHybridDiscs = c.Boolean(false),
|
||||
SupportsModePage1Ch = c.Boolean(false),
|
||||
SupportsOSSC = c.Boolean(false),
|
||||
SupportsPWP = c.Boolean(false),
|
||||
SupportsSWPP = c.Boolean(false),
|
||||
SupportsSecurDisc = c.Boolean(false),
|
||||
SupportsSeparateVolume = c.Boolean(false),
|
||||
SupportsVCPS = c.Boolean(false),
|
||||
SupportsWriteInhibitDCB = c.Boolean(false),
|
||||
SupportsWriteProtectPAC = c.Boolean(false)
|
||||
}).PrimaryKey(t => t.Id);
|
||||
|
||||
CreateTable("dbo.ModePage_2A",
|
||||
c => new
|
||||
{
|
||||
Id = c.Int(false, true),
|
||||
PS = c.Boolean(false),
|
||||
MultiSession = c.Boolean(false),
|
||||
Mode2Form2 = c.Boolean(false),
|
||||
Mode2Form1 = c.Boolean(false),
|
||||
AudioPlay = c.Boolean(false),
|
||||
ISRC = c.Boolean(false),
|
||||
UPC = c.Boolean(false),
|
||||
C2Pointer = c.Boolean(false),
|
||||
DeinterlaveSubchannel = c.Boolean(false),
|
||||
Subchannel = c.Boolean(false),
|
||||
AccurateCDDA = c.Boolean(false),
|
||||
CDDACommand = c.Boolean(false),
|
||||
LoadingMechanism = c.Byte(false),
|
||||
Eject = c.Boolean(false),
|
||||
PreventJumper = c.Boolean(false),
|
||||
LockState = c.Boolean(false),
|
||||
Lock = c.Boolean(false),
|
||||
SeparateChannelMute = c.Boolean(false),
|
||||
SeparateChannelVolume = c.Boolean(false),
|
||||
Method2 = c.Boolean(false),
|
||||
ReadCDRW = c.Boolean(false),
|
||||
ReadCDR = c.Boolean(false),
|
||||
WriteCDRW = c.Boolean(false),
|
||||
WriteCDR = c.Boolean(false),
|
||||
DigitalPort2 = c.Boolean(false),
|
||||
DigitalPort1 = c.Boolean(false),
|
||||
Composite = c.Boolean(false),
|
||||
SSS = c.Boolean(false),
|
||||
SDP = c.Boolean(false),
|
||||
Length = c.Byte(false),
|
||||
LSBF = c.Boolean(false),
|
||||
RCK = c.Boolean(false),
|
||||
BCK = c.Boolean(false),
|
||||
TestWrite = c.Boolean(false),
|
||||
ReadBarcode = c.Boolean(false),
|
||||
ReadDVDRAM = c.Boolean(false),
|
||||
ReadDVDR = c.Boolean(false),
|
||||
ReadDVDROM = c.Boolean(false),
|
||||
WriteDVDRAM = c.Boolean(false),
|
||||
WriteDVDR = c.Boolean(false),
|
||||
LeadInPW = c.Boolean(false),
|
||||
SCC = c.Boolean(false),
|
||||
BUF = c.Boolean(false),
|
||||
RotationControlSelected = c.Byte(false)
|
||||
}).PrimaryKey(t => t.Id);
|
||||
|
||||
CreateTable("dbo.Sscs", c => new {Id = c.Int(false, true), BlockSizeGranularity = c.Byte()})
|
||||
.PrimaryKey(t => t.Id);
|
||||
|
||||
CreateTable("dbo.SupportedDensities",
|
||||
c => new
|
||||
{
|
||||
Id = c.Int(false, true),
|
||||
PrimaryCode = c.Byte(false),
|
||||
SecondaryCode = c.Byte(false),
|
||||
Writable = c.Boolean(false),
|
||||
Duplicate = c.Boolean(false),
|
||||
DefaultDensity = c.Boolean(false),
|
||||
Organization = c.String(unicode: false),
|
||||
Name = c.String(unicode: false),
|
||||
Description = c.String(unicode: false),
|
||||
Ssc_Id = c.Int(),
|
||||
TestedSequentialMedia_Id = c.Int()
|
||||
}).PrimaryKey(t => t.Id).ForeignKey("dbo.Sscs", t => t.Ssc_Id)
|
||||
.ForeignKey("dbo.TestedSequentialMedias", t => t.TestedSequentialMedia_Id)
|
||||
.Index(t => t.Ssc_Id).Index(t => t.TestedSequentialMedia_Id);
|
||||
|
||||
CreateTable("dbo.SscSupportedMedias",
|
||||
c => new
|
||||
{
|
||||
Id = c.Int(false, true),
|
||||
MediumType = c.Byte(false),
|
||||
Organization = c.String(unicode: false),
|
||||
Name = c.String(unicode: false),
|
||||
Description = c.String(unicode: false),
|
||||
Ssc_Id = c.Int(),
|
||||
TestedSequentialMedia_Id = c.Int()
|
||||
}).PrimaryKey(t => t.Id).ForeignKey("dbo.Sscs", t => t.Ssc_Id)
|
||||
.ForeignKey("dbo.TestedSequentialMedias", t => t.TestedSequentialMedia_Id)
|
||||
.Index(t => t.Ssc_Id).Index(t => t.TestedSequentialMedia_Id);
|
||||
|
||||
CreateTable("dbo.DensityCodes", c => new {Code = c.Int(false, true), SscSupportedMedia_Id = c.Int()})
|
||||
.PrimaryKey(t => t.Code).ForeignKey("dbo.SscSupportedMedias", t => t.SscSupportedMedia_Id)
|
||||
.Index(t => t.SscSupportedMedia_Id);
|
||||
|
||||
CreateTable("dbo.TestedSequentialMedias",
|
||||
c => new
|
||||
{
|
||||
Id = c.Int(false, true),
|
||||
CanReadMediaSerial = c.Boolean(),
|
||||
Density = c.Byte(),
|
||||
Manufacturer = c.String(unicode: false),
|
||||
MediaIsRecognized = c.Boolean(false),
|
||||
MediumType = c.Byte(),
|
||||
MediumTypeName = c.String(unicode: false),
|
||||
Model = c.String(unicode: false),
|
||||
ModeSense6Data = c.Binary(),
|
||||
ModeSense10Data = c.Binary(),
|
||||
Ssc_Id = c.Int()
|
||||
}).PrimaryKey(t => t.Id).ForeignKey("dbo.Sscs", t => t.Ssc_Id).Index(t => t.Ssc_Id);
|
||||
|
||||
CreateTable("dbo.Usbs",
|
||||
c => new
|
||||
{
|
||||
Id = c.Int(false, true),
|
||||
Manufacturer = c.String(unicode: false),
|
||||
Product = c.String(unicode: false),
|
||||
RemovableMedia = c.Boolean(false),
|
||||
Descriptors = c.Binary()
|
||||
}).PrimaryKey(t => t.Id);
|
||||
|
||||
CreateTable("dbo.UploadedReports",
|
||||
c => new
|
||||
{
|
||||
Id = c.Int(false, true),
|
||||
UploadedWhen = c.DateTime(false, 0),
|
||||
CompactFlash = c.Boolean(false),
|
||||
Manufacturer = c.String(unicode: false),
|
||||
Model = c.String(unicode: false),
|
||||
Revision = c.String(unicode: false),
|
||||
Type = c.Int(false),
|
||||
ATA_Id = c.Int(),
|
||||
ATAPI_Id = c.Int(),
|
||||
FireWire_Id = c.Int(),
|
||||
MultiMediaCard_Id = c.Int(),
|
||||
PCMCIA_Id = c.Int(),
|
||||
SCSI_Id = c.Int(),
|
||||
SecureDigital_Id = c.Int(),
|
||||
USB_Id = c.Int()
|
||||
}).PrimaryKey(t => t.Id).ForeignKey("dbo.Atas", t => t.ATA_Id)
|
||||
.ForeignKey("dbo.Atas", t => t.ATAPI_Id).ForeignKey("dbo.FireWires", t => t.FireWire_Id)
|
||||
.ForeignKey("dbo.MmcSds", t => t.MultiMediaCard_Id)
|
||||
.ForeignKey("dbo.Pcmcias", t => t.PCMCIA_Id).ForeignKey("dbo.Scsis", t => t.SCSI_Id)
|
||||
.ForeignKey("dbo.MmcSds", t => t.SecureDigital_Id).ForeignKey("dbo.Usbs", t => t.USB_Id)
|
||||
.Index(t => t.ATA_Id).Index(t => t.ATAPI_Id).Index(t => t.FireWire_Id)
|
||||
.Index(t => t.MultiMediaCard_Id).Index(t => t.PCMCIA_Id).Index(t => t.SCSI_Id)
|
||||
.Index(t => t.SecureDigital_Id).Index(t => t.USB_Id);
|
||||
}
|
||||
|
||||
public override void Down()
|
||||
{
|
||||
DropForeignKey("dbo.UploadedReports", "USB_Id", "dbo.Usbs");
|
||||
DropForeignKey("dbo.UploadedReports", "SecureDigital_Id", "dbo.MmcSds");
|
||||
DropForeignKey("dbo.UploadedReports", "SCSI_Id", "dbo.Scsis");
|
||||
DropForeignKey("dbo.UploadedReports", "PCMCIA_Id", "dbo.Pcmcias");
|
||||
DropForeignKey("dbo.UploadedReports", "MultiMediaCard_Id", "dbo.MmcSds");
|
||||
DropForeignKey("dbo.UploadedReports", "FireWire_Id", "dbo.FireWires");
|
||||
DropForeignKey("dbo.UploadedReports", "ATAPI_Id", "dbo.Atas");
|
||||
DropForeignKey("dbo.UploadedReports", "ATA_Id", "dbo.Atas");
|
||||
DropForeignKey("dbo.Devices", "USB_Id", "dbo.Usbs");
|
||||
DropForeignKey("dbo.Devices", "SecureDigital_Id", "dbo.MmcSds");
|
||||
DropForeignKey("dbo.Devices", "SCSI_Id", "dbo.Scsis");
|
||||
DropForeignKey("dbo.Scsis", "SequentialDevice_Id", "dbo.Sscs");
|
||||
DropForeignKey("dbo.TestedSequentialMedias", "Ssc_Id", "dbo.Sscs");
|
||||
DropForeignKey("dbo.SscSupportedMedias", "TestedSequentialMedia_Id", "dbo.TestedSequentialMedias");
|
||||
DropForeignKey("dbo.SupportedDensities", "TestedSequentialMedia_Id", "dbo.TestedSequentialMedias");
|
||||
DropForeignKey("dbo.SscSupportedMedias", "Ssc_Id", "dbo.Sscs");
|
||||
DropForeignKey("dbo.DensityCodes", "SscSupportedMedia_Id", "dbo.SscSupportedMedias");
|
||||
DropForeignKey("dbo.SupportedDensities", "Ssc_Id", "dbo.Sscs");
|
||||
DropForeignKey("dbo.TestedMedias", "Scsi_Id", "dbo.Scsis");
|
||||
DropForeignKey("dbo.Scsis", "ReadCapabilities_Id", "dbo.TestedMedias");
|
||||
DropForeignKey("dbo.Scsis", "MultiMediaDevice_Id", "dbo.Mmcs");
|
||||
DropForeignKey("dbo.TestedMedias", "Mmc_Id", "dbo.Mmcs");
|
||||
DropForeignKey("dbo.Mmcs", "ModeSense2A_Id", "dbo.ModePage_2A");
|
||||
DropForeignKey("dbo.Mmcs", "Features_Id", "dbo.MmcFeatures");
|
||||
DropForeignKey("dbo.Scsis", "ModeSense_Id", "dbo.ScsiModes");
|
||||
DropForeignKey("dbo.ScsiPages", "ScsiMode_Id", "dbo.ScsiModes");
|
||||
DropForeignKey("dbo.BlockDescriptors", "ScsiMode_Id", "dbo.ScsiModes");
|
||||
DropForeignKey("dbo.ScsiPages", "Scsi_Id", "dbo.Scsis");
|
||||
DropForeignKey("dbo.Devices", "PCMCIA_Id", "dbo.Pcmcias");
|
||||
DropForeignKey("dbo.Devices", "MultiMediaCard_Id", "dbo.MmcSds");
|
||||
DropForeignKey("dbo.Devices", "FireWire_Id", "dbo.FireWires");
|
||||
DropForeignKey("dbo.Devices", "ATAPI_Id", "dbo.Atas");
|
||||
DropForeignKey("dbo.Devices", "ATA_Id", "dbo.Atas");
|
||||
DropForeignKey("dbo.TestedMedias", "Ata_Id", "dbo.Atas");
|
||||
DropForeignKey("dbo.Atas", "ReadCapabilities_Id", "dbo.TestedMedias");
|
||||
DropForeignKey("dbo.TestedMedias", "CurrentCHS_Id", "dbo.Chs");
|
||||
DropForeignKey("dbo.TestedMedias", "CHS_Id", "dbo.Chs");
|
||||
DropIndex("dbo.UploadedReports", new[] {"USB_Id"});
|
||||
DropIndex("dbo.UploadedReports", new[] {"SecureDigital_Id"});
|
||||
DropIndex("dbo.UploadedReports", new[] {"SCSI_Id"});
|
||||
DropIndex("dbo.UploadedReports", new[] {"PCMCIA_Id"});
|
||||
DropIndex("dbo.UploadedReports", new[] {"MultiMediaCard_Id"});
|
||||
DropIndex("dbo.UploadedReports", new[] {"FireWire_Id"});
|
||||
DropIndex("dbo.UploadedReports", new[] {"ATAPI_Id"});
|
||||
DropIndex("dbo.UploadedReports", new[] {"ATA_Id"});
|
||||
DropIndex("dbo.TestedSequentialMedias", new[] {"Ssc_Id"});
|
||||
DropIndex("dbo.DensityCodes", new[] {"SscSupportedMedia_Id"});
|
||||
DropIndex("dbo.SscSupportedMedias", new[] {"TestedSequentialMedia_Id"});
|
||||
DropIndex("dbo.SscSupportedMedias", new[] {"Ssc_Id"});
|
||||
DropIndex("dbo.SupportedDensities", new[] {"TestedSequentialMedia_Id"});
|
||||
DropIndex("dbo.SupportedDensities", new[] {"Ssc_Id"});
|
||||
DropIndex("dbo.Mmcs", new[] {"ModeSense2A_Id"});
|
||||
DropIndex("dbo.Mmcs", new[] {"Features_Id"});
|
||||
DropIndex("dbo.BlockDescriptors", new[] {"ScsiMode_Id"});
|
||||
DropIndex("dbo.ScsiPages", new[] {"ScsiMode_Id"});
|
||||
DropIndex("dbo.ScsiPages", new[] {"Scsi_Id"});
|
||||
DropIndex("dbo.Scsis", new[] {"SequentialDevice_Id"});
|
||||
DropIndex("dbo.Scsis", new[] {"ReadCapabilities_Id"});
|
||||
DropIndex("dbo.Scsis", new[] {"MultiMediaDevice_Id"});
|
||||
DropIndex("dbo.Scsis", new[] {"ModeSense_Id"});
|
||||
DropIndex("dbo.TestedMedias", new[] {"Scsi_Id"});
|
||||
DropIndex("dbo.TestedMedias", new[] {"Mmc_Id"});
|
||||
DropIndex("dbo.TestedMedias", new[] {"Ata_Id"});
|
||||
DropIndex("dbo.TestedMedias", new[] {"CurrentCHS_Id"});
|
||||
DropIndex("dbo.TestedMedias", new[] {"CHS_Id"});
|
||||
DropIndex("dbo.Atas", new[] {"ReadCapabilities_Id"});
|
||||
DropIndex("dbo.Devices", new[] {"USB_Id"});
|
||||
DropIndex("dbo.Devices", new[] {"SecureDigital_Id"});
|
||||
DropIndex("dbo.Devices", new[] {"SCSI_Id"});
|
||||
DropIndex("dbo.Devices", new[] {"PCMCIA_Id"});
|
||||
DropIndex("dbo.Devices", new[] {"MultiMediaCard_Id"});
|
||||
DropIndex("dbo.Devices", new[] {"FireWire_Id"});
|
||||
DropIndex("dbo.Devices", new[] {"ATAPI_Id"});
|
||||
DropIndex("dbo.Devices", new[] {"ATA_Id"});
|
||||
DropTable("dbo.UploadedReports");
|
||||
DropTable("dbo.Usbs");
|
||||
DropTable("dbo.TestedSequentialMedias");
|
||||
DropTable("dbo.DensityCodes");
|
||||
DropTable("dbo.SscSupportedMedias");
|
||||
DropTable("dbo.SupportedDensities");
|
||||
DropTable("dbo.Sscs");
|
||||
DropTable("dbo.ModePage_2A");
|
||||
DropTable("dbo.MmcFeatures");
|
||||
DropTable("dbo.Mmcs");
|
||||
DropTable("dbo.BlockDescriptors");
|
||||
DropTable("dbo.ScsiModes");
|
||||
DropTable("dbo.ScsiPages");
|
||||
DropTable("dbo.Scsis");
|
||||
DropTable("dbo.Pcmcias");
|
||||
DropTable("dbo.MmcSds");
|
||||
DropTable("dbo.FireWires");
|
||||
DropTable("dbo.Chs");
|
||||
DropTable("dbo.TestedMedias");
|
||||
DropTable("dbo.Atas");
|
||||
DropTable("dbo.Devices");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -1,29 +0,0 @@
|
||||
// <auto-generated />
|
||||
namespace DiscImageChef.Server.Migrations
|
||||
{
|
||||
using System.CodeDom.Compiler;
|
||||
using System.Data.Entity.Migrations;
|
||||
using System.Data.Entity.Migrations.Infrastructure;
|
||||
using System.Resources;
|
||||
|
||||
[GeneratedCode("EntityFramework.Migrations", "6.2.0-61023")]
|
||||
public sealed partial class AddStatistics : IMigrationMetadata
|
||||
{
|
||||
private readonly ResourceManager Resources = new ResourceManager(typeof(AddStatistics));
|
||||
|
||||
string IMigrationMetadata.Id
|
||||
{
|
||||
get { return "201812220029427_AddStatistics"; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Source
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Target
|
||||
{
|
||||
get { return Resources.GetString("Target"); }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,75 +0,0 @@
|
||||
using System.Data.Entity.Migrations;
|
||||
|
||||
namespace DiscImageChef.Server.Migrations
|
||||
{
|
||||
public partial class AddStatistics : DbMigration
|
||||
{
|
||||
public override void Up()
|
||||
{
|
||||
CreateTable("dbo.Commands",
|
||||
c => new {Id = c.Int(false, true), Name = c.String(unicode: false), Count = c.Long(false)})
|
||||
.PrimaryKey(t => t.Id);
|
||||
|
||||
CreateTable("dbo.DeviceStats",
|
||||
c => new
|
||||
{
|
||||
Id = c.Int(false, true),
|
||||
Manufacturer = c.String(unicode: false),
|
||||
Model = c.String(unicode: false),
|
||||
Revision = c.String(unicode: false),
|
||||
Bus = c.String(unicode: false)
|
||||
}).PrimaryKey(t => t.Id);
|
||||
|
||||
CreateTable("dbo.Filesystems",
|
||||
c => new {Id = c.Int(false, true), Name = c.String(unicode: false), Count = c.Long(false)})
|
||||
.PrimaryKey(t => t.Id);
|
||||
|
||||
CreateTable("dbo.Filters",
|
||||
c => new {Id = c.Int(false, true), Name = c.String(unicode: false), Count = c.Long(false)})
|
||||
.PrimaryKey(t => t.Id);
|
||||
|
||||
CreateTable("dbo.MediaFormats",
|
||||
c => new {Id = c.Int(false, true), Name = c.String(unicode: false), Count = c.Long(false)})
|
||||
.PrimaryKey(t => t.Id);
|
||||
|
||||
CreateTable("dbo.Media",
|
||||
c => new
|
||||
{
|
||||
Id = c.Int(false, true),
|
||||
Type = c.String(unicode: false),
|
||||
Real = c.Boolean(false),
|
||||
Count = c.Long(false)
|
||||
}).PrimaryKey(t => t.Id);
|
||||
|
||||
CreateTable("dbo.OperatingSystems",
|
||||
c => new
|
||||
{
|
||||
Id = c.Int(false, true),
|
||||
Name = c.String(unicode: false),
|
||||
Version = c.String(unicode: false),
|
||||
Count = c.Long(false)
|
||||
}).PrimaryKey(t => t.Id);
|
||||
|
||||
CreateTable("dbo.Partitions",
|
||||
c => new {Id = c.Int(false, true), Name = c.String(unicode: false), Count = c.Long(false)})
|
||||
.PrimaryKey(t => t.Id);
|
||||
|
||||
CreateTable("dbo.Versions",
|
||||
c => new {Id = c.Int(false, true), Value = c.String(unicode: false), Count = c.Long(false)})
|
||||
.PrimaryKey(t => t.Id);
|
||||
}
|
||||
|
||||
public override void Down()
|
||||
{
|
||||
DropTable("dbo.Versions");
|
||||
DropTable("dbo.Partitions");
|
||||
DropTable("dbo.OperatingSystems");
|
||||
DropTable("dbo.Media");
|
||||
DropTable("dbo.MediaFormats");
|
||||
DropTable("dbo.Filters");
|
||||
DropTable("dbo.Filesystems");
|
||||
DropTable("dbo.DeviceStats");
|
||||
DropTable("dbo.Commands");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -1,29 +0,0 @@
|
||||
// <auto-generated />
|
||||
namespace DiscImageChef.Server.Migrations
|
||||
{
|
||||
using System.CodeDom.Compiler;
|
||||
using System.Data.Entity.Migrations;
|
||||
using System.Data.Entity.Migrations.Infrastructure;
|
||||
using System.Resources;
|
||||
|
||||
[GeneratedCode("EntityFramework.Migrations", "6.2.0-61023")]
|
||||
public sealed partial class LinkDeviceStatsToReport : IMigrationMetadata
|
||||
{
|
||||
private readonly ResourceManager Resources = new ResourceManager(typeof(LinkDeviceStatsToReport));
|
||||
|
||||
string IMigrationMetadata.Id
|
||||
{
|
||||
get { return "201812221606592_LinkDeviceStatsToReport"; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Source
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Target
|
||||
{
|
||||
get { return Resources.GetString("Target"); }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
using System.Data.Entity.Migrations;
|
||||
|
||||
namespace DiscImageChef.Server.Migrations
|
||||
{
|
||||
public partial class LinkDeviceStatsToReport : DbMigration
|
||||
{
|
||||
public override void Up()
|
||||
{
|
||||
AddColumn("dbo.DeviceStats", "Report_Id", c => c.Int());
|
||||
CreateIndex("dbo.DeviceStats", "Report_Id");
|
||||
AddForeignKey("dbo.DeviceStats", "Report_Id", "dbo.Devices", "Id");
|
||||
}
|
||||
|
||||
public override void Down()
|
||||
{
|
||||
DropForeignKey("dbo.DeviceStats", "Report_Id", "dbo.Devices");
|
||||
DropIndex("dbo.DeviceStats", new[] {"Report_Id"});
|
||||
DropColumn("dbo.DeviceStats", "Report_Id");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -1,29 +0,0 @@
|
||||
// <auto-generated />
|
||||
namespace DiscImageChef.Server.Migrations
|
||||
{
|
||||
using System.CodeDom.Compiler;
|
||||
using System.Data.Entity.Migrations;
|
||||
using System.Data.Entity.Migrations.Infrastructure;
|
||||
using System.Resources;
|
||||
|
||||
[GeneratedCode("EntityFramework.Migrations", "6.2.0-61023")]
|
||||
public sealed partial class FixUnsignedFields : IMigrationMetadata
|
||||
{
|
||||
private readonly ResourceManager Resources = new ResourceManager(typeof(FixUnsignedFields));
|
||||
|
||||
string IMigrationMetadata.Id
|
||||
{
|
||||
get { return "201812231612080_FixUnsignedFields"; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Source
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Target
|
||||
{
|
||||
get { return Resources.GetString("Target"); }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,81 +0,0 @@
|
||||
using System.Data.Entity.Migrations;
|
||||
|
||||
namespace DiscImageChef.Server.Migrations
|
||||
{
|
||||
public partial class FixUnsignedFields : DbMigration
|
||||
{
|
||||
public override void Up()
|
||||
{
|
||||
AddColumn("dbo.TestedMedias", "BlocksSql", c => c.Long());
|
||||
AddColumn("dbo.TestedMedias", "BlockSizeSql", c => c.Int());
|
||||
AddColumn("dbo.TestedMedias", "LongBlockSizeSql", c => c.Int());
|
||||
AddColumn("dbo.TestedMedias", "LBASectorsSql", c => c.Int());
|
||||
AddColumn("dbo.TestedMedias", "LBA48SectorsSql", c => c.Long());
|
||||
AddColumn("dbo.TestedMedias", "LogicalAlignmentSql", c => c.Short());
|
||||
AddColumn("dbo.TestedMedias", "NominalRotationRateSql", c => c.Short());
|
||||
AddColumn("dbo.TestedMedias", "PhysicalBlockSizeSql", c => c.Int());
|
||||
AddColumn("dbo.TestedMedias", "UnformattedBPTSql", c => c.Short());
|
||||
AddColumn("dbo.TestedMedias", "UnformattedBPSSql", c => c.Short());
|
||||
AddColumn("dbo.Chs", "CylindersSql", c => c.Short(false));
|
||||
AddColumn("dbo.Chs", "HeadsSql", c => c.Short(false));
|
||||
AddColumn("dbo.Chs", "SectorsSql", c => c.Short(false));
|
||||
AddColumn("dbo.FireWires", "VendorIDSql", c => c.Int(false));
|
||||
AddColumn("dbo.FireWires", "ProductIDSql", c => c.Int(false));
|
||||
AddColumn("dbo.Pcmcias", "ManufacturerCodeSql", c => c.Short());
|
||||
AddColumn("dbo.Pcmcias", "CardCodeSql", c => c.Short());
|
||||
AddColumn("dbo.BlockDescriptors", "BlocksSql", c => c.Long());
|
||||
AddColumn("dbo.BlockDescriptors", "BlockLengthSql", c => c.Int());
|
||||
AddColumn("dbo.MmcFeatures", "BlocksPerReadableUnitSql", c => c.Short());
|
||||
AddColumn("dbo.MmcFeatures", "LogicalBlockSizeSql", c => c.Int());
|
||||
AddColumn("dbo.MmcFeatures", "PhysicalInterfaceStandardNumberSql", c => c.Int());
|
||||
AddColumn("dbo.MmcFeatures", "VolumeLevelsSql", c => c.Short());
|
||||
AddColumn("dbo.Sscs", "MaxBlockLengthSql", c => c.Int());
|
||||
AddColumn("dbo.Sscs", "MinBlockLengthSql", c => c.Int());
|
||||
AddColumn("dbo.SupportedDensities", "BitsPerMmSql", c => c.Int(false));
|
||||
AddColumn("dbo.SupportedDensities", "WidthSql", c => c.Short(false));
|
||||
AddColumn("dbo.SupportedDensities", "TracksSql", c => c.Short(false));
|
||||
AddColumn("dbo.SupportedDensities", "CapacitySql", c => c.Int(false));
|
||||
AddColumn("dbo.SscSupportedMedias", "WidthSql", c => c.Short(false));
|
||||
AddColumn("dbo.SscSupportedMedias", "LengthSql", c => c.Short(false));
|
||||
AddColumn("dbo.Usbs", "VendorIDSql", c => c.Short(false));
|
||||
AddColumn("dbo.Usbs", "ProductIDSql", c => c.Short(false));
|
||||
}
|
||||
|
||||
public override void Down()
|
||||
{
|
||||
DropColumn("dbo.Usbs", "ProductIDSql");
|
||||
DropColumn("dbo.Usbs", "VendorIDSql");
|
||||
DropColumn("dbo.SscSupportedMedias", "LengthSql");
|
||||
DropColumn("dbo.SscSupportedMedias", "WidthSql");
|
||||
DropColumn("dbo.SupportedDensities", "CapacitySql");
|
||||
DropColumn("dbo.SupportedDensities", "TracksSql");
|
||||
DropColumn("dbo.SupportedDensities", "WidthSql");
|
||||
DropColumn("dbo.SupportedDensities", "BitsPerMmSql");
|
||||
DropColumn("dbo.Sscs", "MinBlockLengthSql");
|
||||
DropColumn("dbo.Sscs", "MaxBlockLengthSql");
|
||||
DropColumn("dbo.MmcFeatures", "VolumeLevelsSql");
|
||||
DropColumn("dbo.MmcFeatures", "PhysicalInterfaceStandardNumberSql");
|
||||
DropColumn("dbo.MmcFeatures", "LogicalBlockSizeSql");
|
||||
DropColumn("dbo.MmcFeatures", "BlocksPerReadableUnitSql");
|
||||
DropColumn("dbo.BlockDescriptors", "BlockLengthSql");
|
||||
DropColumn("dbo.BlockDescriptors", "BlocksSql");
|
||||
DropColumn("dbo.Pcmcias", "CardCodeSql");
|
||||
DropColumn("dbo.Pcmcias", "ManufacturerCodeSql");
|
||||
DropColumn("dbo.FireWires", "ProductIDSql");
|
||||
DropColumn("dbo.FireWires", "VendorIDSql");
|
||||
DropColumn("dbo.Chs", "SectorsSql");
|
||||
DropColumn("dbo.Chs", "HeadsSql");
|
||||
DropColumn("dbo.Chs", "CylindersSql");
|
||||
DropColumn("dbo.TestedMedias", "UnformattedBPSSql");
|
||||
DropColumn("dbo.TestedMedias", "UnformattedBPTSql");
|
||||
DropColumn("dbo.TestedMedias", "PhysicalBlockSizeSql");
|
||||
DropColumn("dbo.TestedMedias", "NominalRotationRateSql");
|
||||
DropColumn("dbo.TestedMedias", "LogicalAlignmentSql");
|
||||
DropColumn("dbo.TestedMedias", "LBA48SectorsSql");
|
||||
DropColumn("dbo.TestedMedias", "LBASectorsSql");
|
||||
DropColumn("dbo.TestedMedias", "LongBlockSizeSql");
|
||||
DropColumn("dbo.TestedMedias", "BlockSizeSql");
|
||||
DropColumn("dbo.TestedMedias", "BlocksSql");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -1,29 +0,0 @@
|
||||
// <auto-generated />
|
||||
namespace DiscImageChef.Server.Migrations
|
||||
{
|
||||
using System.CodeDom.Compiler;
|
||||
using System.Data.Entity.Migrations;
|
||||
using System.Data.Entity.Migrations.Infrastructure;
|
||||
using System.Resources;
|
||||
|
||||
[GeneratedCode("EntityFramework.Migrations", "6.2.0-61023")]
|
||||
public sealed partial class UseBinaryDataForIdentifyInquiryAndModesInReports : IMigrationMetadata
|
||||
{
|
||||
private readonly ResourceManager Resources = new ResourceManager(typeof(UseBinaryDataForIdentifyInquiryAndModesInReports));
|
||||
|
||||
string IMigrationMetadata.Id
|
||||
{
|
||||
get { return "201812232250198_UseBinaryDataForIdentifyInquiryAndModesInReports"; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Source
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Target
|
||||
{
|
||||
get { return Resources.GetString("Target"); }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,74 +0,0 @@
|
||||
using System.Data.Entity.Migrations;
|
||||
|
||||
namespace DiscImageChef.Server.Migrations
|
||||
{
|
||||
public partial class UseBinaryDataForIdentifyInquiryAndModesInReports : DbMigration
|
||||
{
|
||||
public override void Up()
|
||||
{
|
||||
DropForeignKey("Mmcs", "ModeSense2A_Id", "ModePage_2A");
|
||||
DropIndex("dbo.Mmcs", new[] {"ModeSense2A_Id"});
|
||||
AddColumn("dbo.Mmcs", "ModeSense2AData", c => c.Binary());
|
||||
DropColumn("dbo.Mmcs", "ModeSense2A_Id");
|
||||
DropTable("dbo.ModePage_2A");
|
||||
}
|
||||
|
||||
public override void Down()
|
||||
{
|
||||
CreateTable("dbo.ModePage_2A",
|
||||
c => new
|
||||
{
|
||||
Id = c.Int(false, true),
|
||||
PS = c.Boolean(false),
|
||||
MultiSession = c.Boolean(false),
|
||||
Mode2Form2 = c.Boolean(false),
|
||||
Mode2Form1 = c.Boolean(false),
|
||||
AudioPlay = c.Boolean(false),
|
||||
ISRC = c.Boolean(false),
|
||||
UPC = c.Boolean(false),
|
||||
C2Pointer = c.Boolean(false),
|
||||
DeinterlaveSubchannel = c.Boolean(false),
|
||||
Subchannel = c.Boolean(false),
|
||||
AccurateCDDA = c.Boolean(false),
|
||||
CDDACommand = c.Boolean(false),
|
||||
LoadingMechanism = c.Byte(false),
|
||||
Eject = c.Boolean(false),
|
||||
PreventJumper = c.Boolean(false),
|
||||
LockState = c.Boolean(false),
|
||||
Lock = c.Boolean(false),
|
||||
SeparateChannelMute = c.Boolean(false),
|
||||
SeparateChannelVolume = c.Boolean(false),
|
||||
Method2 = c.Boolean(false),
|
||||
ReadCDRW = c.Boolean(false),
|
||||
ReadCDR = c.Boolean(false),
|
||||
WriteCDRW = c.Boolean(false),
|
||||
WriteCDR = c.Boolean(false),
|
||||
DigitalPort2 = c.Boolean(false),
|
||||
DigitalPort1 = c.Boolean(false),
|
||||
Composite = c.Boolean(false),
|
||||
SSS = c.Boolean(false),
|
||||
SDP = c.Boolean(false),
|
||||
Length = c.Byte(false),
|
||||
LSBF = c.Boolean(false),
|
||||
RCK = c.Boolean(false),
|
||||
BCK = c.Boolean(false),
|
||||
TestWrite = c.Boolean(false),
|
||||
ReadBarcode = c.Boolean(false),
|
||||
ReadDVDRAM = c.Boolean(false),
|
||||
ReadDVDR = c.Boolean(false),
|
||||
ReadDVDROM = c.Boolean(false),
|
||||
WriteDVDRAM = c.Boolean(false),
|
||||
WriteDVDR = c.Boolean(false),
|
||||
LeadInPW = c.Boolean(false),
|
||||
SCC = c.Boolean(false),
|
||||
BUF = c.Boolean(false),
|
||||
RotationControlSelected = c.Byte(false)
|
||||
}).PrimaryKey(t => t.Id);
|
||||
|
||||
AddColumn("dbo.Mmcs", "ModeSense2A_Id", c => c.Int());
|
||||
DropColumn("dbo.Mmcs", "ModeSense2AData");
|
||||
CreateIndex("dbo.Mmcs", "ModeSense2A_Id");
|
||||
AddForeignKey("dbo.Mmcs", "ModeSense2A_Id", "dbo.ModePage_2A", "Id");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -1,29 +0,0 @@
|
||||
// <auto-generated />
|
||||
namespace DiscImageChef.Server.Migrations
|
||||
{
|
||||
using System.CodeDom.Compiler;
|
||||
using System.Data.Entity.Migrations;
|
||||
using System.Data.Entity.Migrations.Infrastructure;
|
||||
using System.Resources;
|
||||
|
||||
[GeneratedCode("EntityFramework.Migrations", "6.2.0-61023")]
|
||||
public sealed partial class StoreUsbIdsInDatabase : IMigrationMetadata
|
||||
{
|
||||
private readonly ResourceManager Resources = new ResourceManager(typeof(StoreUsbIdsInDatabase));
|
||||
|
||||
string IMigrationMetadata.Id
|
||||
{
|
||||
get { return "201812240552109_StoreUsbIdsInDatabase"; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Source
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Target
|
||||
{
|
||||
get { return Resources.GetString("Target"); }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,39 +0,0 @@
|
||||
using System.Data.Entity.Migrations;
|
||||
|
||||
namespace DiscImageChef.Server.Migrations
|
||||
{
|
||||
public partial class StoreUsbIdsInDatabase : DbMigration
|
||||
{
|
||||
public override void Up()
|
||||
{
|
||||
CreateTable("dbo.UsbProducts",
|
||||
c => new
|
||||
{
|
||||
Id = c.Int(false, true),
|
||||
ProductId = c.Int(false),
|
||||
Product = c.String(unicode: false),
|
||||
AddedWhen = c.DateTime(false, 0),
|
||||
ModifiedWhen = c.DateTime(false, 0),
|
||||
VendorId = c.Int(false)
|
||||
}).PrimaryKey(t => t.Id).ForeignKey("dbo.UsbVendors", t => t.VendorId, true)
|
||||
.Index(t => t.VendorId);
|
||||
|
||||
CreateTable("dbo.UsbVendors",
|
||||
c => new
|
||||
{
|
||||
Id = c.Int(false, true),
|
||||
Vendor = c.String(unicode: false),
|
||||
AddedWhen = c.DateTime(false, 0),
|
||||
ModifiedWhen = c.DateTime(false, 0)
|
||||
}).PrimaryKey(t => t.Id);
|
||||
}
|
||||
|
||||
public override void Down()
|
||||
{
|
||||
DropForeignKey("dbo.UsbProducts", "VendorId", "dbo.UsbVendors");
|
||||
DropIndex("dbo.UsbProducts", new[] {"VendorId"});
|
||||
DropTable("dbo.UsbVendors");
|
||||
DropTable("dbo.UsbProducts");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -1,29 +0,0 @@
|
||||
// <auto-generated />
|
||||
namespace DiscImageChef.Server.Migrations
|
||||
{
|
||||
using System.CodeDom.Compiler;
|
||||
using System.Data.Entity.Migrations;
|
||||
using System.Data.Entity.Migrations.Infrastructure;
|
||||
using System.Resources;
|
||||
|
||||
[GeneratedCode("EntityFramework.Migrations", "6.2.0-61023")]
|
||||
public sealed partial class FixUsbIdsAndIndexes : IMigrationMetadata
|
||||
{
|
||||
private readonly ResourceManager Resources = new ResourceManager(typeof(FixUsbIdsAndIndexes));
|
||||
|
||||
string IMigrationMetadata.Id
|
||||
{
|
||||
get { return "201812241719441_FixUsbIdsAndIndexes"; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Source
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Target
|
||||
{
|
||||
get { return Resources.GetString("Target"); }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
using System.Data.Entity.Migrations;
|
||||
|
||||
namespace DiscImageChef.Server.Migrations
|
||||
{
|
||||
public partial class FixUsbIdsAndIndexes : DbMigration
|
||||
{
|
||||
public override void Up()
|
||||
{
|
||||
AddColumn("dbo.UsbVendors", "VendorId", c => c.Int(false));
|
||||
CreateIndex("dbo.UsbProducts", "ProductId");
|
||||
CreateIndex("dbo.UsbProducts", "ModifiedWhen");
|
||||
CreateIndex("dbo.UsbVendors", "VendorId", true);
|
||||
CreateIndex("dbo.UsbVendors", "ModifiedWhen");
|
||||
}
|
||||
|
||||
public override void Down()
|
||||
{
|
||||
DropIndex("dbo.UsbVendors", new[] {"ModifiedWhen"});
|
||||
DropIndex("dbo.UsbVendors", new[] {"VendorId"});
|
||||
DropIndex("dbo.UsbProducts", new[] {"ModifiedWhen"});
|
||||
DropIndex("dbo.UsbProducts", new[] {"ProductId"});
|
||||
DropColumn("dbo.UsbVendors", "VendorId");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -1,29 +0,0 @@
|
||||
// <auto-generated />
|
||||
namespace DiscImageChef.Server.Migrations
|
||||
{
|
||||
using System.CodeDom.Compiler;
|
||||
using System.Data.Entity.Migrations;
|
||||
using System.Data.Entity.Migrations.Infrastructure;
|
||||
using System.Resources;
|
||||
|
||||
[GeneratedCode("EntityFramework.Migrations", "6.2.0-61023")]
|
||||
public sealed partial class AddCdOffsets : IMigrationMetadata
|
||||
{
|
||||
private readonly ResourceManager Resources = new ResourceManager(typeof(AddCdOffsets));
|
||||
|
||||
string IMigrationMetadata.Id
|
||||
{
|
||||
get { return "201812250223002_AddCdOffsets"; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Source
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Target
|
||||
{
|
||||
get { return Resources.GetString("Target"); }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,40 +0,0 @@
|
||||
using System.Data.Entity.Migrations;
|
||||
|
||||
namespace DiscImageChef.Server.Migrations
|
||||
{
|
||||
public partial class AddCdOffsets : DbMigration
|
||||
{
|
||||
public override void Up()
|
||||
{
|
||||
CreateTable("dbo.CompactDiscOffsets",
|
||||
c => new
|
||||
{
|
||||
Id = c.Int(false, true),
|
||||
AddedWhen = c.DateTime(false, 0),
|
||||
ModifiedWhen = c.DateTime(false, 0),
|
||||
Manufacturer = c.String(unicode: false),
|
||||
Model = c.String(unicode: false),
|
||||
Offset = c.Short(false),
|
||||
Submissions = c.Int(false),
|
||||
Agreement = c.Single(false)
|
||||
}).PrimaryKey(t => t.Id).Index(t => t.ModifiedWhen);
|
||||
|
||||
AddColumn("dbo.Devices", "ModifiedWhen", c => c.DateTime(precision: 0));
|
||||
AddColumn("dbo.Devices", "CdOffset_Id", c => c.Int());
|
||||
CreateIndex("dbo.Devices", "ModifiedWhen");
|
||||
CreateIndex("dbo.Devices", "CdOffset_Id");
|
||||
AddForeignKey("dbo.Devices", "CdOffset_Id", "dbo.CompactDiscOffsets", "Id");
|
||||
}
|
||||
|
||||
public override void Down()
|
||||
{
|
||||
DropForeignKey("dbo.Devices", "CdOffset_Id", "dbo.CompactDiscOffsets");
|
||||
DropIndex("dbo.Devices", new[] {"CdOffset_Id"});
|
||||
DropIndex("dbo.Devices", new[] {"ModifiedWhen"});
|
||||
DropIndex("dbo.CompactDiscOffsets", new[] {"ModifiedWhen"});
|
||||
DropColumn("dbo.Devices", "CdOffset_Id");
|
||||
DropColumn("dbo.Devices", "ModifiedWhen");
|
||||
DropTable("dbo.CompactDiscOffsets");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -1,29 +0,0 @@
|
||||
// <auto-generated />
|
||||
namespace DiscImageChef.Server.Migrations
|
||||
{
|
||||
using System.CodeDom.Compiler;
|
||||
using System.Data.Entity.Migrations;
|
||||
using System.Data.Entity.Migrations.Infrastructure;
|
||||
using System.Resources;
|
||||
|
||||
[GeneratedCode("EntityFramework.Migrations", "6.2.0-61023")]
|
||||
public sealed partial class StoreMmcGetConfigurationResponse : IMigrationMetadata
|
||||
{
|
||||
private readonly ResourceManager Resources = new ResourceManager(typeof(StoreMmcGetConfigurationResponse));
|
||||
|
||||
string IMigrationMetadata.Id
|
||||
{
|
||||
get { return "201812251556377_StoreMmcGetConfigurationResponse"; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Source
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Target
|
||||
{
|
||||
get { return Resources.GetString("Target"); }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
using System.Data.Entity.Migrations;
|
||||
|
||||
namespace DiscImageChef.Server.Migrations
|
||||
{
|
||||
public partial class StoreMmcGetConfigurationResponse : DbMigration
|
||||
{
|
||||
public override void Up()
|
||||
{
|
||||
AddColumn("dbo.MmcFeatures", "BinaryData", c => c.Binary());
|
||||
}
|
||||
|
||||
public override void Down()
|
||||
{
|
||||
DropColumn("dbo.MmcFeatures", "BinaryData");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -1,29 +0,0 @@
|
||||
// <auto-generated />
|
||||
namespace DiscImageChef.Server.Migrations
|
||||
{
|
||||
using System.CodeDom.Compiler;
|
||||
using System.Data.Entity.Migrations;
|
||||
using System.Data.Entity.Migrations.Infrastructure;
|
||||
using System.Resources;
|
||||
|
||||
[GeneratedCode("EntityFramework.Migrations", "6.2.0-61023")]
|
||||
public sealed partial class StoreReadResultsInReportDatabase : IMigrationMetadata
|
||||
{
|
||||
private readonly ResourceManager Resources = new ResourceManager(typeof(StoreReadResultsInReportDatabase));
|
||||
|
||||
string IMigrationMetadata.Id
|
||||
{
|
||||
get { return "201812252219066_StoreReadResultsInReportDatabase"; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Source
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Target
|
||||
{
|
||||
get { return Resources.GetString("Target"); }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,139 +0,0 @@
|
||||
using System.Data.Entity.Migrations;
|
||||
|
||||
namespace DiscImageChef.Server.Migrations
|
||||
{
|
||||
public partial class StoreReadResultsInReportDatabase : DbMigration
|
||||
{
|
||||
public override void Up()
|
||||
{
|
||||
AddColumn("dbo.TestedMedias", "Read6Data", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "Read10Data", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "Read12Data", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "Read16Data", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "ReadLong10Data", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "ReadLong16Data", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "ReadSectorsData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "ReadSectorsRetryData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "ReadDmaData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "ReadDmaRetryData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "ReadLbaData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "ReadRetryLbaData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "ReadDmaLbaData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "ReadDmaRetryLbaData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "ReadLba48Data", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "ReadDmaLba48Data", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "ReadLongData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "ReadLongRetryData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "ReadLongLbaData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "ReadLongRetryLbaData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "TocData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "FullTocData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "AtipData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "PmaData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "ReadCdData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "ReadCdMsfData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "ReadCdFullData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "ReadCdMsfFullData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "Track1PregapData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "LeadInData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "LeadOutData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "C2PointersData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "PQSubchannelData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "RWSubchannelData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "CorrectedSubchannelData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "PQSubchannelWithC2Data", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "RWSubchannelWithC2Data", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "CorrectedSubchannelWithC2Data", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "PfiData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "DmiData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "CmiData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "DvdBcaData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "DvdAacsData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "DvdDdsData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "DvdSaiData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "PriData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "EmbossedPfiData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "AdipData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "DcbData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "HdCmiData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "DvdLayerData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "BluBcaData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "BluDdsData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "BluSaiData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "BluDiData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "BluPacData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "PlextorReadCddaData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "PioneerReadCddaData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "PioneerReadCddaMsfData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "NecReadCddaData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "PlextorReadRawDVDData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "HLDTSTReadRawDVDData", c => c.Binary());
|
||||
}
|
||||
|
||||
public override void Down()
|
||||
{
|
||||
DropColumn("dbo.TestedMedias", "HLDTSTReadRawDVDData");
|
||||
DropColumn("dbo.TestedMedias", "PlextorReadRawDVDData");
|
||||
DropColumn("dbo.TestedMedias", "NecReadCddaData");
|
||||
DropColumn("dbo.TestedMedias", "PioneerReadCddaMsfData");
|
||||
DropColumn("dbo.TestedMedias", "PioneerReadCddaData");
|
||||
DropColumn("dbo.TestedMedias", "PlextorReadCddaData");
|
||||
DropColumn("dbo.TestedMedias", "BluPacData");
|
||||
DropColumn("dbo.TestedMedias", "BluDiData");
|
||||
DropColumn("dbo.TestedMedias", "BluSaiData");
|
||||
DropColumn("dbo.TestedMedias", "BluDdsData");
|
||||
DropColumn("dbo.TestedMedias", "BluBcaData");
|
||||
DropColumn("dbo.TestedMedias", "DvdLayerData");
|
||||
DropColumn("dbo.TestedMedias", "HdCmiData");
|
||||
DropColumn("dbo.TestedMedias", "DcbData");
|
||||
DropColumn("dbo.TestedMedias", "AdipData");
|
||||
DropColumn("dbo.TestedMedias", "EmbossedPfiData");
|
||||
DropColumn("dbo.TestedMedias", "PriData");
|
||||
DropColumn("dbo.TestedMedias", "DvdSaiData");
|
||||
DropColumn("dbo.TestedMedias", "DvdDdsData");
|
||||
DropColumn("dbo.TestedMedias", "DvdAacsData");
|
||||
DropColumn("dbo.TestedMedias", "DvdBcaData");
|
||||
DropColumn("dbo.TestedMedias", "CmiData");
|
||||
DropColumn("dbo.TestedMedias", "DmiData");
|
||||
DropColumn("dbo.TestedMedias", "PfiData");
|
||||
DropColumn("dbo.TestedMedias", "CorrectedSubchannelWithC2Data");
|
||||
DropColumn("dbo.TestedMedias", "RWSubchannelWithC2Data");
|
||||
DropColumn("dbo.TestedMedias", "PQSubchannelWithC2Data");
|
||||
DropColumn("dbo.TestedMedias", "CorrectedSubchannelData");
|
||||
DropColumn("dbo.TestedMedias", "RWSubchannelData");
|
||||
DropColumn("dbo.TestedMedias", "PQSubchannelData");
|
||||
DropColumn("dbo.TestedMedias", "C2PointersData");
|
||||
DropColumn("dbo.TestedMedias", "LeadOutData");
|
||||
DropColumn("dbo.TestedMedias", "LeadInData");
|
||||
DropColumn("dbo.TestedMedias", "Track1PregapData");
|
||||
DropColumn("dbo.TestedMedias", "ReadCdMsfFullData");
|
||||
DropColumn("dbo.TestedMedias", "ReadCdFullData");
|
||||
DropColumn("dbo.TestedMedias", "ReadCdMsfData");
|
||||
DropColumn("dbo.TestedMedias", "ReadCdData");
|
||||
DropColumn("dbo.TestedMedias", "PmaData");
|
||||
DropColumn("dbo.TestedMedias", "AtipData");
|
||||
DropColumn("dbo.TestedMedias", "FullTocData");
|
||||
DropColumn("dbo.TestedMedias", "TocData");
|
||||
DropColumn("dbo.TestedMedias", "ReadLongRetryLbaData");
|
||||
DropColumn("dbo.TestedMedias", "ReadLongLbaData");
|
||||
DropColumn("dbo.TestedMedias", "ReadLongRetryData");
|
||||
DropColumn("dbo.TestedMedias", "ReadLongData");
|
||||
DropColumn("dbo.TestedMedias", "ReadDmaLba48Data");
|
||||
DropColumn("dbo.TestedMedias", "ReadLba48Data");
|
||||
DropColumn("dbo.TestedMedias", "ReadDmaRetryLbaData");
|
||||
DropColumn("dbo.TestedMedias", "ReadDmaLbaData");
|
||||
DropColumn("dbo.TestedMedias", "ReadRetryLbaData");
|
||||
DropColumn("dbo.TestedMedias", "ReadLbaData");
|
||||
DropColumn("dbo.TestedMedias", "ReadDmaRetryData");
|
||||
DropColumn("dbo.TestedMedias", "ReadDmaData");
|
||||
DropColumn("dbo.TestedMedias", "ReadSectorsRetryData");
|
||||
DropColumn("dbo.TestedMedias", "ReadSectorsData");
|
||||
DropColumn("dbo.TestedMedias", "ReadLong16Data");
|
||||
DropColumn("dbo.TestedMedias", "ReadLong10Data");
|
||||
DropColumn("dbo.TestedMedias", "Read16Data");
|
||||
DropColumn("dbo.TestedMedias", "Read12Data");
|
||||
DropColumn("dbo.TestedMedias", "Read10Data");
|
||||
DropColumn("dbo.TestedMedias", "Read6Data");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -1,29 +0,0 @@
|
||||
// <auto-generated />
|
||||
namespace DiscImageChef.Server.Migrations
|
||||
{
|
||||
using System.CodeDom.Compiler;
|
||||
using System.Data.Entity.Migrations;
|
||||
using System.Data.Entity.Migrations.Infrastructure;
|
||||
using System.Resources;
|
||||
|
||||
[GeneratedCode("EntityFramework.Migrations", "6.2.0-61023")]
|
||||
public sealed partial class AddMultisessionLeadTest : IMigrationMetadata
|
||||
{
|
||||
private readonly ResourceManager Resources = new ResourceManager(typeof(AddMultisessionLeadTest));
|
||||
|
||||
string IMigrationMetadata.Id
|
||||
{
|
||||
get { return "201901022133012_AddMultisessionLeadTest"; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Source
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Target
|
||||
{
|
||||
get { return Resources.GetString("Target"); }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
using System.Data.Entity.Migrations;
|
||||
|
||||
namespace DiscImageChef.Server.Migrations
|
||||
{
|
||||
public partial class AddMultisessionLeadTest : DbMigration
|
||||
{
|
||||
public override void Up()
|
||||
{
|
||||
AddColumn("dbo.TestedMedias", "CanReadingIntersessionLeadIn", c => c.Boolean());
|
||||
AddColumn("dbo.TestedMedias", "CanReadingIntersessionLeadOut", c => c.Boolean());
|
||||
AddColumn("dbo.TestedMedias", "IntersessionLeadInData", c => c.Binary());
|
||||
AddColumn("dbo.TestedMedias", "IntersessionLeadOutData", c => c.Binary());
|
||||
}
|
||||
|
||||
public override void Down()
|
||||
{
|
||||
DropColumn("dbo.TestedMedias", "IntersessionLeadOutData");
|
||||
DropColumn("dbo.TestedMedias", "IntersessionLeadInData");
|
||||
DropColumn("dbo.TestedMedias", "CanReadingIntersessionLeadOut");
|
||||
DropColumn("dbo.TestedMedias", "CanReadingIntersessionLeadIn");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -1,29 +0,0 @@
|
||||
// <auto-generated />
|
||||
namespace DiscImageChef.Server.Migrations
|
||||
{
|
||||
using System.CodeDom.Compiler;
|
||||
using System.Data.Entity.Migrations;
|
||||
using System.Data.Entity.Migrations.Infrastructure;
|
||||
using System.Resources;
|
||||
|
||||
[GeneratedCode("EntityFramework.Migrations", "6.2.0-61023")]
|
||||
public sealed partial class AddOptimalReadMultipleCount : IMigrationMetadata
|
||||
{
|
||||
private readonly ResourceManager Resources = new ResourceManager(typeof(AddOptimalReadMultipleCount));
|
||||
|
||||
string IMigrationMetadata.Id
|
||||
{
|
||||
get { return "201901030344456_AddOptimalReadMultipleCount"; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Source
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Target
|
||||
{
|
||||
get { return Resources.GetString("Target"); }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
using System.Data.Entity.Migrations;
|
||||
|
||||
namespace DiscImageChef.Server.Migrations
|
||||
{
|
||||
public partial class AddOptimalReadMultipleCount : DbMigration
|
||||
{
|
||||
public override void Up()
|
||||
{
|
||||
AddColumn("dbo.Devices", "OptimalMultipleSectorsRead", c => c.Int(false, defaultValue: 0));
|
||||
}
|
||||
|
||||
public override void Down()
|
||||
{
|
||||
DropColumn("dbo.Devices", "OptimalMultipleSectorsRead");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -1,29 +0,0 @@
|
||||
// <auto-generated />
|
||||
namespace DiscImageChef.Server.Migrations
|
||||
{
|
||||
using System.CodeDom.Compiler;
|
||||
using System.Data.Entity.Migrations;
|
||||
using System.Data.Entity.Migrations.Infrastructure;
|
||||
using System.Resources;
|
||||
|
||||
[GeneratedCode("EntityFramework.Migrations", "6.2.0-61023")]
|
||||
public sealed partial class AddChangeableScsiModes : IMigrationMetadata
|
||||
{
|
||||
private readonly ResourceManager Resources = new ResourceManager(typeof(AddChangeableScsiModes));
|
||||
|
||||
string IMigrationMetadata.Id
|
||||
{
|
||||
get { return "201901081359499_AddChangeableScsiModes"; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Source
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Target
|
||||
{
|
||||
get { return Resources.GetString("Target"); }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
using System.Data.Entity.Migrations;
|
||||
|
||||
namespace DiscImageChef.Server.Migrations
|
||||
{
|
||||
public partial class AddChangeableScsiModes : DbMigration
|
||||
{
|
||||
public override void Up()
|
||||
{
|
||||
AddColumn("dbo.Scsis", "ModeSense6CurrentData", c => c.Binary());
|
||||
AddColumn("dbo.Scsis", "ModeSense10CurrentData", c => c.Binary());
|
||||
AddColumn("dbo.Scsis", "ModeSense6ChangeableData", c => c.Binary());
|
||||
AddColumn("dbo.Scsis", "ModeSense10ChangeableData", c => c.Binary());
|
||||
}
|
||||
|
||||
public override void Down()
|
||||
{
|
||||
DropColumn("dbo.Scsis", "ModeSense10ChangeableData");
|
||||
DropColumn("dbo.Scsis", "ModeSense6ChangeableData");
|
||||
DropColumn("dbo.Scsis", "ModeSense10CurrentData");
|
||||
DropColumn("dbo.Scsis", "ModeSense6CurrentData");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -1,29 +0,0 @@
|
||||
// <auto-generated />
|
||||
namespace DiscImageChef.Server.Migrations
|
||||
{
|
||||
using System.CodeDom.Compiler;
|
||||
using System.Data.Entity.Migrations;
|
||||
using System.Data.Entity.Migrations.Infrastructure;
|
||||
using System.Resources;
|
||||
|
||||
[GeneratedCode("EntityFramework.Migrations", "6.2.0-61023")]
|
||||
public sealed partial class IdForDensityCode : IMigrationMetadata
|
||||
{
|
||||
private readonly ResourceManager Resources = new ResourceManager(typeof(IdForDensityCode));
|
||||
|
||||
string IMigrationMetadata.Id
|
||||
{
|
||||
get { return "201905252122267_IdForDensityCode"; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Source
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Target
|
||||
{
|
||||
get { return Resources.GetString("Target"); }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
using System.Data.Entity.Migrations;
|
||||
|
||||
namespace DiscImageChef.Server.Migrations
|
||||
{
|
||||
public partial class IdForDensityCode : DbMigration
|
||||
{
|
||||
public override void Up()
|
||||
{
|
||||
RenameTable("DensityCodes", "DensityCodes_old");
|
||||
|
||||
CreateTable("dbo.DensityCodes",
|
||||
c => new {Code = c.Int(false), SscSupportedMedia_Id = c.Int(), Id = c.Int(false, true)})
|
||||
.PrimaryKey(t => t.Id).ForeignKey("dbo.SscSupportedMedias", t => t.SscSupportedMedia_Id)
|
||||
.Index(t => t.SscSupportedMedia_Id);
|
||||
|
||||
Sql("INSERT INTO DensityCodes (Code, SscSupportedMedia_Id) SELECT Code, SscSupportedMedia_Id FROM DensityCodes_old");
|
||||
|
||||
DropTable("DensityCodes_old");
|
||||
}
|
||||
|
||||
public override void Down()
|
||||
{
|
||||
RenameTable("DensityCodes", "DensityCodes_old");
|
||||
|
||||
CreateTable("dbo.DensityCodes", c => new {Code = c.Int(false, true), SscSupportedMedia_Id = c.Int()})
|
||||
.PrimaryKey(t => t.Code).ForeignKey("dbo.SscSupportedMedias", t => t.SscSupportedMedia_Id)
|
||||
.Index(t => t.SscSupportedMedia_Id);
|
||||
|
||||
Sql("INSERT INTO DensityCodes (Code, SscSupportedMedia_Id) SELECT Code, SscSupportedMedia_Id FROM DensityCodes_old");
|
||||
|
||||
DropTable("DensityCodes_old");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -1,29 +0,0 @@
|
||||
// <auto-generated />
|
||||
namespace DiscImageChef.Server.Migrations
|
||||
{
|
||||
using System.CodeDom.Compiler;
|
||||
using System.Data.Entity.Migrations;
|
||||
using System.Data.Entity.Migrations.Infrastructure;
|
||||
using System.Resources;
|
||||
|
||||
[GeneratedCode("EntityFramework.Migrations", "6.2.0-61023")]
|
||||
public sealed partial class MakeEntityFrameworkHappy : IMigrationMetadata
|
||||
{
|
||||
private readonly ResourceManager Resources = new ResourceManager(typeof(MakeEntityFrameworkHappy));
|
||||
|
||||
string IMigrationMetadata.Id
|
||||
{
|
||||
get { return "201905252245072_MakeEntityFrameworkHappy"; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Source
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Target
|
||||
{
|
||||
get { return Resources.GetString("Target"); }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
using System.Data.Entity.Migrations;
|
||||
|
||||
namespace DiscImageChef.Server.Migrations
|
||||
{
|
||||
public partial class MakeEntityFrameworkHappy : DbMigration
|
||||
{
|
||||
public override void Up() { }
|
||||
|
||||
public override void Down() { }
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
2098
DiscImageChef.Server/Migrations/20191102132240_InitialMigration.Designer.cs
generated
Normal file
2098
DiscImageChef.Server/Migrations/20191102132240_InitialMigration.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
2529
DiscImageChef.Server/Migrations/20191102132240_InitialMigration.cs
Normal file
2529
DiscImageChef.Server/Migrations/20191102132240_InitialMigration.cs
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,53 +0,0 @@
|
||||
// /***************************************************************************
|
||||
// The Disc Image Chef
|
||||
// ----------------------------------------------------------------------------
|
||||
//
|
||||
// Filename : Configuration.cs
|
||||
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
||||
//
|
||||
// Component : DiscImageChef Server.
|
||||
//
|
||||
// --[ Description ] ----------------------------------------------------------
|
||||
//
|
||||
// Provides database context configuration.
|
||||
//
|
||||
// --[ License ] --------------------------------------------------------------
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as
|
||||
// published by the Free Software Foundation; either version 2.1 of the
|
||||
// License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful, but
|
||||
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
||||
//
|
||||
// ----------------------------------------------------------------------------
|
||||
// Copyright © 2011-2019 Natalia Portillo
|
||||
// ****************************************************************************/
|
||||
|
||||
using System.Data.Entity.Migrations;
|
||||
using DiscImageChef.Server.Models;
|
||||
|
||||
namespace DiscImageChef.Server.Migrations
|
||||
{
|
||||
public sealed class Configuration : DbMigrationsConfiguration<DicServerContext>
|
||||
{
|
||||
public Configuration()
|
||||
{
|
||||
AutomaticMigrationsEnabled = false;
|
||||
}
|
||||
|
||||
protected override void Seed(DicServerContext context)
|
||||
{
|
||||
// This method will be called after migrating to the latest version.
|
||||
|
||||
// You can use the DbSet<T>.AddOrUpdate() helper extension method
|
||||
// to avoid creating duplicate seed data.
|
||||
}
|
||||
}
|
||||
}
|
||||
2096
DiscImageChef.Server/Migrations/DicServerContextModelSnapshot.cs
Normal file
2096
DiscImageChef.Server/Migrations/DicServerContextModelSnapshot.cs
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user