41 lines
1.2 KiB
C#
41 lines
1.2 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace CompanyManagment.EFCore.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class NewPropToEmployeeInsuranceListData : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<double>(
|
|
name: "FamilyAllowance",
|
|
table: "EmployeeInsurancListData",
|
|
type: "float",
|
|
nullable: false,
|
|
defaultValue: 0.0);
|
|
|
|
migrationBuilder.AddColumn<double>(
|
|
name: "OverTimePay",
|
|
table: "EmployeeInsurancListData",
|
|
type: "float",
|
|
nullable: false,
|
|
defaultValue: 0.0);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "FamilyAllowance",
|
|
table: "EmployeeInsurancListData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "OverTimePay",
|
|
table: "EmployeeInsurancListData");
|
|
}
|
|
}
|
|
}
|