Files
2026-03-22 00:29:34 +01:00

36 lines
954 B
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BethanysPieShopHRM.Api.Migrations
{
/// <inheritdoc />
public partial class addingImageName : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "ImageName",
table: "Employees",
type: "TEXT",
nullable: true);
migrationBuilder.UpdateData(
table: "Employees",
keyColumn: "EmployeeId",
keyValue: 1,
column: "ImageName",
value: null);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ImageName",
table: "Employees");
}
}
}