2019-12-04 18:29:58 +00:00
|
|
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
|
|
|
2024-05-03 22:18:49 +01:00
|
|
|
|
namespace Aaru.Server.Database.Migrations
|
2019-12-04 18:29:58 +00:00
|
|
|
|
{
|
|
|
|
|
|
public partial class RemoteStatistics : Migration
|
|
|
|
|
|
{
|
|
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
|
|
|
|
{
|
|
|
|
|
|
migrationBuilder.CreateTable("RemoteApplications", table => new
|
|
|
|
|
|
{
|
|
|
|
|
|
Id = table.Column<int>().
|
|
|
|
|
|
Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
2020-07-22 15:26:02 +01:00
|
|
|
|
Name = table.Column<string>(nullable: true),
|
|
|
|
|
|
Version = table.Column<string>(nullable: true),
|
|
|
|
|
|
Count = table.Column<long>()
|
|
|
|
|
|
}, constraints: table => table.PrimaryKey("PK_RemoteApplications", x => x.Id));
|
2019-12-04 18:29:58 +00:00
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable("RemoteArchitectures", table => new
|
|
|
|
|
|
{
|
|
|
|
|
|
Id = table.Column<int>().
|
|
|
|
|
|
Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
2020-07-22 15:26:02 +01:00
|
|
|
|
Name = table.Column<string>(nullable: true),
|
|
|
|
|
|
Count = table.Column<long>()
|
|
|
|
|
|
}, constraints: table => table.PrimaryKey("PK_RemoteArchitectures", x => x.Id));
|
2019-12-04 18:29:58 +00:00
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable("RemoteOperatingSystems", table => new
|
|
|
|
|
|
{
|
|
|
|
|
|
Id = table.Column<int>().
|
|
|
|
|
|
Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
2020-07-22 15:26:02 +01:00
|
|
|
|
Name = table.Column<string>(nullable: true),
|
|
|
|
|
|
Version = table.Column<string>(nullable: true),
|
|
|
|
|
|
Count = table.Column<long>()
|
|
|
|
|
|
}, constraints: table => table.PrimaryKey("PK_RemoteOperatingSystems", x => x.Id));
|
2019-12-04 18:29:58 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
|
|
|
|
{
|
|
|
|
|
|
migrationBuilder.DropTable("RemoteApplications");
|
|
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable("RemoteArchitectures");
|
|
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable("RemoteOperatingSystems");
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|