mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Add remote statistics.
This commit is contained in:
1561
DiscImageChef.Database/Migrations/20191207184342_AddRemoteStats.Designer.cs
generated
Normal file
1561
DiscImageChef.Database/Migrations/20191207184342_AddRemoteStats.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,49 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace DiscImageChef.Database.Migrations
|
||||
{
|
||||
public partial class AddRemoteStats : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable("RemoteApplications", table => new
|
||||
{
|
||||
Id = table.Column<int>().Annotation("Sqlite:Autoincrement", true),
|
||||
Name = table.Column<string>(nullable: true), Version = table.Column<string>(nullable: true),
|
||||
Synchronized = table.Column<bool>(), Count = table.Column<ulong>()
|
||||
}, constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_RemoteApplications", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable("RemoteArchitectures", table => new
|
||||
{
|
||||
Id = table.Column<int>().Annotation("Sqlite:Autoincrement", true),
|
||||
Name = table.Column<string>(nullable: true), Synchronized = table.Column<bool>(),
|
||||
Count = table.Column<ulong>()
|
||||
}, constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_RemoteArchitectures", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable("RemoteOperatingSystems", table => new
|
||||
{
|
||||
Id = table.Column<int>().Annotation("Sqlite:Autoincrement", true),
|
||||
Name = table.Column<string>(nullable: true), Version = table.Column<string>(nullable: true),
|
||||
Synchronized = table.Column<bool>(), Count = table.Column<ulong>()
|
||||
}, constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_RemoteOperatingSystems", x => x.Id);
|
||||
});
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable("RemoteApplications");
|
||||
|
||||
migrationBuilder.DropTable("RemoteArchitectures");
|
||||
|
||||
migrationBuilder.DropTable("RemoteOperatingSystems");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1174,6 +1174,55 @@ namespace DiscImageChef.Database.Migrations
|
||||
b.ToTable("Partitions");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DiscImageChef.Database.Models.RemoteApplication", b =>
|
||||
{
|
||||
b.Property<int>("Id").ValueGeneratedOnAdd();
|
||||
|
||||
b.Property<ulong>("Count");
|
||||
|
||||
b.Property<string>("Name");
|
||||
|
||||
b.Property<bool>("Synchronized");
|
||||
|
||||
b.Property<string>("Version");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("RemoteApplications");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DiscImageChef.Database.Models.RemoteArchitecture", b =>
|
||||
{
|
||||
b.Property<int>("Id").ValueGeneratedOnAdd();
|
||||
|
||||
b.Property<ulong>("Count");
|
||||
|
||||
b.Property<string>("Name");
|
||||
|
||||
b.Property<bool>("Synchronized");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("RemoteArchitectures");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DiscImageChef.Database.Models.RemoteOperatingSystem", b =>
|
||||
{
|
||||
b.Property<int>("Id").ValueGeneratedOnAdd();
|
||||
|
||||
b.Property<ulong>("Count");
|
||||
|
||||
b.Property<string>("Name");
|
||||
|
||||
b.Property<bool>("Synchronized");
|
||||
|
||||
b.Property<string>("Version");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("RemoteOperatingSystems");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DiscImageChef.Database.Models.Report", b =>
|
||||
{
|
||||
b.Property<int>("Id").ValueGeneratedOnAdd();
|
||||
|
||||
Reference in New Issue
Block a user