2018-12-21 04:08:58 +00:00
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
|
|
|
2020-02-27 00:33:26 +00:00
|
|
|
|
namespace Aaru.Database.Migrations
|
2018-12-21 04:08:58 +00:00
|
|
|
|
{
|
|
|
|
|
|
public partial class OperatingSystemStatistics : Migration
|
|
|
|
|
|
{
|
|
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
|
|
|
|
{
|
|
|
|
|
|
migrationBuilder.CreateTable("OperatingSystems",
|
|
|
|
|
|
table => new
|
|
|
|
|
|
{
|
|
|
|
|
|
Id = table.Column<int>(nullable: false)
|
|
|
|
|
|
.Annotation("Sqlite:Autoincrement", true),
|
|
|
|
|
|
Name = table.Column<string>(nullable: true),
|
|
|
|
|
|
Version = table.Column<string>(nullable: true),
|
|
|
|
|
|
Synchronized = table.Column<bool>(nullable: false)
|
|
|
|
|
|
},
|
|
|
|
|
|
constraints: table => { table.PrimaryKey("PK_OperatingSystems", x => x.Id); });
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
|
|
|
|
{
|
|
|
|
|
|
migrationBuilder.DropTable("OperatingSystems");
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|