using System; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; namespace BTCPayServer.Plugins.Test.Migrations { [DbContext(typeof(TestPluginDbContext))] [Migration("20201117154419_Init")] public partial class Init : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.EnsureSchema( name: "BTCPayServer.Plugins.Test"); migrationBuilder.CreateTable( name: "TestPluginRecords", schema: "BTCPayServer.Plugins.Test", columns: table => new { Id = table.Column(nullable: false), Timestamp = table.Column(nullable: false) }, constraints: table => { table.PrimaryKey("PK_TestPluginRecords", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "TestPluginRecords", schema: "BTCPayServer.Plugins.Test"); } } }