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

43 lines
1.2 KiB
C#

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