Adds a customer name field to projects for better job tracking and identification on reports. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
29 lines
736 B
C#
29 lines
736 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace CutList.Web.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddProjectCustomer : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Customer",
|
|
table: "Projects",
|
|
type: "nvarchar(max)",
|
|
nullable: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "Customer",
|
|
table: "Projects");
|
|
}
|
|
}
|
|
}
|