40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace CompanyManagment.EFCore.Migrations
|
|
{
|
|
public partial class EditedLeftWorkIncurance : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "IncludeStatus",
|
|
table: "LeftWorkInsurances",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<long>(
|
|
name: "JobId",
|
|
table: "LeftWorkInsurances",
|
|
type: "bigint",
|
|
nullable: false,
|
|
defaultValue: 0L);
|
|
|
|
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "IncludeStatus",
|
|
table: "LeftWorkInsurances");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "JobId",
|
|
table: "LeftWorkInsurances");
|
|
|
|
}
|
|
}
|
|
}
|