mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Add basic fields to device report.
This commit is contained in:
1182
DiscImageChef.Database/Migrations/20181127001622_AddDeviceBasicFields.Designer.cs
generated
Normal file
1182
DiscImageChef.Database/Migrations/20181127001622_AddDeviceBasicFields.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,50 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace DiscImageChef.Database.Migrations
|
||||
{
|
||||
public partial class AddDeviceBasicFields : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "Manufacturer",
|
||||
table: "Reports",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "Model",
|
||||
table: "Reports",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "Revision",
|
||||
table: "Reports",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "Type",
|
||||
table: "Reports",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Manufacturer",
|
||||
table: "Reports");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Model",
|
||||
table: "Reports");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Revision",
|
||||
table: "Reports");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Type",
|
||||
table: "Reports");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -90,14 +90,22 @@ namespace DiscImageChef.Database.Migrations
|
||||
|
||||
b.Property<int?>("FireWireId");
|
||||
|
||||
b.Property<string>("Manufacturer");
|
||||
|
||||
b.Property<string>("Model");
|
||||
|
||||
b.Property<int?>("MultiMediaCardId");
|
||||
|
||||
b.Property<int?>("PCMCIAId");
|
||||
|
||||
b.Property<string>("Revision");
|
||||
|
||||
b.Property<int?>("SCSIId");
|
||||
|
||||
b.Property<int?>("SecureDigitalId");
|
||||
|
||||
b.Property<int>("Type");
|
||||
|
||||
b.Property<int?>("USBId");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
Reference in New Issue
Block a user