mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Move media statistics to database.
This commit is contained in:
1345
DiscImageChef.Database/Migrations/20181221032605_MediaStatistics.Designer.cs
generated
Normal file
1345
DiscImageChef.Database/Migrations/20181221032605_MediaStatistics.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,25 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace DiscImageChef.Database.Migrations
|
||||
{
|
||||
public partial class MediaStatistics : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable("Medias",
|
||||
table => new
|
||||
{
|
||||
Id = table.Column<int>(nullable: false)
|
||||
.Annotation("Sqlite:Autoincrement", true),
|
||||
Type = table.Column<string>(nullable: true),
|
||||
Real = table.Column<bool>(nullable: false),
|
||||
Synchronized = table.Column<bool>(nullable: false)
|
||||
}, constraints: table => { table.PrimaryKey("PK_Medias", x => x.Id); });
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable("Medias");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -916,6 +916,21 @@ namespace DiscImageChef.Database.Migrations
|
||||
b.ToTable("Filters");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DiscImageChef.Database.Models.Media", b =>
|
||||
{
|
||||
b.Property<int>("Id").ValueGeneratedOnAdd();
|
||||
|
||||
b.Property<bool>("Real");
|
||||
|
||||
b.Property<bool>("Synchronized");
|
||||
|
||||
b.Property<string>("Type");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Medias");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DiscImageChef.Database.Models.MediaFormat", b =>
|
||||
{
|
||||
b.Property<int>("Id").ValueGeneratedOnAdd();
|
||||
|
||||
Reference in New Issue
Block a user