campus-errand/server/Migrations/20260417110656_AddRejectReasonToWithdrawal.cs
2026-04-17 19:10:41 +08:00

31 lines
827 B
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace CampusErrand.Migrations
{
/// <inheritdoc />
public partial class AddRejectReasonToWithdrawal : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "RejectReason",
table: "Withdrawals",
type: "nvarchar(256)",
maxLength: 256,
nullable: false,
defaultValue: "");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "RejectReason",
table: "Withdrawals");
}
}
}