2018-12-21 03:17:35 +00:00
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
|
|
|
2020-02-27 00:33:26 +00:00
|
|
|
|
namespace Aaru.Database.Migrations
|
2018-12-21 03:17:35 +00:00
|
|
|
|
{
|
|
|
|
|
|
public partial class NameValueStatistics : Migration
|
|
|
|
|
|
{
|
|
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
|
|
|
|
{
|
2020-02-29 18:03:35 +00:00
|
|
|
|
migrationBuilder.CreateTable("Commands", table => new
|
|
|
|
|
|
{
|
2020-07-20 04:34:16 +01:00
|
|
|
|
Id = table.Column<int>().Annotation("Sqlite:Autoincrement", true),
|
|
|
|
|
|
Name = table.Column<string>(nullable: true),
|
|
|
|
|
|
Synchronized = table.Column<bool>()
|
2020-07-22 13:20:25 +01:00
|
|
|
|
}, constraints: table => table.PrimaryKey("PK_Commands", x => x.Id));
|
2018-12-21 03:17:35 +00:00
|
|
|
|
|
2020-02-29 18:03:35 +00:00
|
|
|
|
migrationBuilder.CreateTable("Filesystems", table => new
|
|
|
|
|
|
{
|
2020-07-20 04:34:16 +01:00
|
|
|
|
Id = table.Column<int>().Annotation("Sqlite:Autoincrement", true),
|
|
|
|
|
|
Name = table.Column<string>(nullable: true),
|
|
|
|
|
|
Synchronized = table.Column<bool>()
|
2020-07-22 13:20:25 +01:00
|
|
|
|
}, constraints: table => table.PrimaryKey("PK_Filesystems", x => x.Id));
|
2018-12-21 03:17:35 +00:00
|
|
|
|
|
2020-02-29 18:03:35 +00:00
|
|
|
|
migrationBuilder.CreateTable("Filters", table => new
|
|
|
|
|
|
{
|
2020-07-20 04:34:16 +01:00
|
|
|
|
Id = table.Column<int>().Annotation("Sqlite:Autoincrement", true),
|
|
|
|
|
|
Name = table.Column<string>(nullable: true),
|
|
|
|
|
|
Synchronized = table.Column<bool>()
|
2020-07-22 13:20:25 +01:00
|
|
|
|
}, constraints: table => table.PrimaryKey("PK_Filters", x => x.Id));
|
2018-12-21 03:17:35 +00:00
|
|
|
|
|
2020-02-29 18:03:35 +00:00
|
|
|
|
migrationBuilder.CreateTable("MediaFormats", table => new
|
|
|
|
|
|
{
|
2020-07-20 04:34:16 +01:00
|
|
|
|
Id = table.Column<int>().Annotation("Sqlite:Autoincrement", true),
|
|
|
|
|
|
Name = table.Column<string>(nullable: true),
|
|
|
|
|
|
Synchronized = table.Column<bool>()
|
2020-07-22 13:20:25 +01:00
|
|
|
|
}, constraints: table => table.PrimaryKey("PK_MediaFormats", x => x.Id));
|
2018-12-21 03:17:35 +00:00
|
|
|
|
|
2020-02-29 18:03:35 +00:00
|
|
|
|
migrationBuilder.CreateTable("Partitions", table => new
|
|
|
|
|
|
{
|
2020-07-20 04:34:16 +01:00
|
|
|
|
Id = table.Column<int>().Annotation("Sqlite:Autoincrement", true),
|
|
|
|
|
|
Name = table.Column<string>(nullable: true),
|
|
|
|
|
|
Synchronized = table.Column<bool>()
|
2020-07-22 13:20:25 +01:00
|
|
|
|
}, constraints: table => table.PrimaryKey("PK_Partitions", x => x.Id));
|
2018-12-21 03:17:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
|
|
|
|
{
|
|
|
|
|
|
migrationBuilder.DropTable("Commands");
|
|
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable("Filesystems");
|
|
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable("Filters");
|
|
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable("MediaFormats");
|
|
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable("Partitions");
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|