Files
parr_api/PARR.DAL/Migrations/20250822004054_tblJobAddClmnisParentRelationshipsAndWorkGroupMask.cs

64 lines
1.8 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace PARR.DAL.Migrations
{
/// <inheritdoc />
public partial class tblJobAddClmnisParentRelationshipsAndWorkGroupMask : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "TemplateNameMask",
schema: "job",
table: "Jobs",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
migrationBuilder.AddColumn<string>(
name: "WorkGroupMask",
schema: "job",
table: "Jobs",
type: "text",
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<bool>(
name: "isParentRelationships",
schema: "job",
table: "Jobs",
type: "boolean",
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "WorkGroupMask",
schema: "job",
table: "Jobs");
migrationBuilder.DropColumn(
name: "isParentRelationships",
schema: "job",
table: "Jobs");
migrationBuilder.AlterColumn<string>(
name: "TemplateNameMask",
schema: "job",
table: "Jobs",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
}
}
}