using Microsoft.EntityFrameworkCore.Migrations; namespace Aaru.Database.Migrations { public partial class AddRemoteStats : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable("RemoteApplications", table => new { Id = table.Column().Annotation("Sqlite:Autoincrement", true), Name = table.Column(nullable: true), Version = table.Column(nullable: true), Synchronized = table.Column(), Count = table.Column() }, constraints: table => { table.PrimaryKey("PK_RemoteApplications", x => x.Id); }); migrationBuilder.CreateTable("RemoteArchitectures", table => new { Id = table.Column().Annotation("Sqlite:Autoincrement", true), Name = table.Column(nullable: true), Synchronized = table.Column(), Count = table.Column() }, constraints: table => { table.PrimaryKey("PK_RemoteArchitectures", x => x.Id); }); migrationBuilder.CreateTable("RemoteOperatingSystems", table => new { Id = table.Column().Annotation("Sqlite:Autoincrement", true), Name = table.Column(nullable: true), Version = table.Column(nullable: true), Synchronized = table.Column(), Count = table.Column() }, constraints: table => { table.PrimaryKey("PK_RemoteOperatingSystems", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable("RemoteApplications"); migrationBuilder.DropTable("RemoteArchitectures"); migrationBuilder.DropTable("RemoteOperatingSystems"); } } }