mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Store CompactDisc read offsets in database.
This commit is contained in:
1425
DiscImageChef.Database/Migrations/20181225002740_AddCdOffsets.Designer.cs
generated
Normal file
1425
DiscImageChef.Database/Migrations/20181225002740_AddCdOffsets.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace DiscImageChef.Database.Migrations
|
||||
{
|
||||
public partial class AddCdOffsets : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable("CdOffsets",
|
||||
table => new
|
||||
{
|
||||
Manufacturer = table.Column<string>(nullable: true),
|
||||
Model = table.Column<string>(nullable: true),
|
||||
Offset = table.Column<short>(nullable: false),
|
||||
Submissions = table.Column<int>(nullable: false),
|
||||
Agreement = table.Column<float>(nullable: false),
|
||||
Id = table.Column<int>(nullable: false)
|
||||
.Annotation("Sqlite:Autoincrement", true),
|
||||
AddedWhen = table.Column<DateTime>(nullable: false),
|
||||
ModifiedWhen = table.Column<DateTime>(nullable: false)
|
||||
}, constraints: table => { table.PrimaryKey("PK_CdOffsets", x => x.Id); });
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable("CdOffsets");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -886,6 +886,29 @@ namespace DiscImageChef.Database.Migrations
|
||||
b.ToTable("Usb");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DiscImageChef.Database.Models.CdOffset", b =>
|
||||
{
|
||||
b.Property<int>("Id").ValueGeneratedOnAdd();
|
||||
|
||||
b.Property<DateTime>("AddedWhen");
|
||||
|
||||
b.Property<float>("Agreement");
|
||||
|
||||
b.Property<string>("Manufacturer");
|
||||
|
||||
b.Property<string>("Model");
|
||||
|
||||
b.Property<DateTime>("ModifiedWhen");
|
||||
|
||||
b.Property<short>("Offset");
|
||||
|
||||
b.Property<int>("Submissions");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("CdOffsets");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DiscImageChef.Database.Models.Command", b =>
|
||||
{
|
||||
b.Property<int>("Id").ValueGeneratedOnAdd();
|
||||
|
||||
Reference in New Issue
Block a user