using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace NostrStreamer.Migrations { /// public partial class PaymentFee : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "Fee", table: "Payments", type: "numeric(20,0)", nullable: false, defaultValue: 0m); migrationBuilder.Sql("update \"Payments\" set \"Amount\" = \"Amount\" * 1000"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "Fee", table: "Payments"); } } }