mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Store not only default, but current and changeable modes in SCSI device report.
This commit is contained in:
@@ -265,6 +265,10 @@
|
||||
<Compile Include="Migrations\201901030344456_AddOptimalReadMultipleCount.Designer.cs">
|
||||
<DependentUpon>201901030344456_AddOptimalReadMultipleCount.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Migrations\201901081359499_AddChangeableScsiModes.cs" />
|
||||
<Compile Include="Migrations\201901081359499_AddChangeableScsiModes.Designer.cs">
|
||||
<DependentUpon>201901081359499_AddChangeableScsiModes.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Migrations\Configuration.cs" />
|
||||
<Compile Include="Models\CdOffset.cs" />
|
||||
<Compile Include="Models\Command.cs" />
|
||||
@@ -394,6 +398,9 @@
|
||||
<EmbeddedResource Include="Migrations\201901030344456_AddOptimalReadMultipleCount.resx">
|
||||
<DependentUpon>201901030344456_AddOptimalReadMultipleCount.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Migrations\201901081359499_AddChangeableScsiModes.resx">
|
||||
<DependentUpon>201901081359499_AddChangeableScsiModes.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<PropertyGroup>
|
||||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
|
||||
|
||||
29
DiscImageChef.Server/Migrations/201901081359499_AddChangeableScsiModes.Designer.cs
generated
Normal file
29
DiscImageChef.Server/Migrations/201901081359499_AddChangeableScsiModes.Designer.cs
generated
Normal file
@@ -0,0 +1,29 @@
|
||||
// <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"); }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
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
Reference in New Issue
Block a user