using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace VoidCat.Migrations { /// public partial class SimplifyPaymentOrder : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "PaymentStrike"); migrationBuilder.AddColumn( name: "Upstream", table: "Payment", type: "text", nullable: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "Upstream", table: "Payment"); migrationBuilder.CreateTable( name: "PaymentStrike", columns: table => new { Id = table.Column(type: "uuid", nullable: false), Handle = table.Column(type: "text", nullable: false) }, constraints: table => { table.PrimaryKey("PK_PaymentStrike", x => x.Id); table.ForeignKey( name: "FK_PaymentStrike_Payment_Id", column: x => x.Id, principalTable: "Payment", principalColumn: "Id", onDelete: ReferentialAction.Cascade); }); } } }