2018-12-21 03:55:56 +00:00
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
|
|
|
2020-02-27 00:33:26 +00:00
|
|
|
|
namespace Aaru.Database.Migrations
|
2018-12-21 03:55:56 +00:00
|
|
|
|
{
|
|
|
|
|
|
public partial class SeenDevicesStatistics : Migration
|
|
|
|
|
|
{
|
2020-02-29 18:03:35 +00:00
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder) => migrationBuilder.CreateTable("SeenDevices",
|
2020-11-11 04:19:18 +00:00
|
|
|
|
table => new
|
|
|
|
|
|
{
|
|
|
|
|
|
Id = table.Column<int>().Annotation("Sqlite:Autoincrement", true),
|
|
|
|
|
|
Manufacturer = table.Column<string>(nullable: true),
|
|
|
|
|
|
Model = table.Column<string>(nullable: true),
|
|
|
|
|
|
Revision = table.Column<string>(nullable: true),
|
|
|
|
|
|
Bus = table.Column<string>(nullable: true),
|
|
|
|
|
|
Synchronized = table.Column<bool>()
|
|
|
|
|
|
}, constraints: table => table.PrimaryKey("PK_SeenDevices", x => x.Id));
|
2018-12-21 03:55:56 +00:00
|
|
|
|
|
2020-02-29 18:03:35 +00:00
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder) => migrationBuilder.DropTable("SeenDevices");
|
2018-12-21 03:55:56 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|