using System; using BTCPayServer.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace BTCPayServer.Migrations { [DbContext(typeof(ApplicationDbContext))] [Migration("20240317024757_payments_refactor")] public partial class payments_refactor : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "Amount", table: "Payments", type: "NUMERIC", nullable: true); migrationBuilder.AddColumn( name: "Created", table: "Payments", nullable: true); migrationBuilder.AddColumn( name: "Currency", table: "Payments", type: "TEXT", nullable: true); migrationBuilder.AddColumn( name: "Status", table: "Payments", type: "TEXT", nullable: true); migrationBuilder.AlterColumn( name: "Accounted", table: "Payments", nullable: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "Amount", table: "Payments"); migrationBuilder.DropColumn( name: "Created", table: "Payments"); migrationBuilder.DropColumn( name: "Currency", table: "Payments"); migrationBuilder.DropColumn( name: "Status", table: "Payments"); } } }