marco.pms.api/Marco.Pms.DataAccess/Migrations/20250318053416_addJobRoleIdInProjectAllocation.cs

41 lines
1.1 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Marco.Pms.DataAccess.Migrations
{
/// <inheritdoc />
public partial class addJobRoleIdInProjectAllocation : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "EmployeeRoleId",
table: "ProjectAllocations");
migrationBuilder.AddColumn<int>(
name: "JobRoleId",
table: "ProjectAllocations",
type: "int",
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "JobRoleId",
table: "ProjectAllocations");
migrationBuilder.AddColumn<Guid>(
name: "EmployeeRoleId",
table: "ProjectAllocations",
type: "char(36)",
nullable: true,
collation: "ascii_general_ci");
}
}
}