85 lines
2.6 KiB
C#
85 lines
2.6 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace CompanyManagment.EFCore.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddBaseYearsToInsurance : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<double>(
|
|
name: "SumOfBaseYears",
|
|
table: "InsuranceLists",
|
|
type: "float",
|
|
nullable: false,
|
|
defaultValue: 0.0);
|
|
|
|
migrationBuilder.AddColumn<double>(
|
|
name: "SumOfDailyWagePlusBaseYears",
|
|
table: "InsuranceLists",
|
|
type: "float",
|
|
nullable: false,
|
|
defaultValue: 0.0);
|
|
|
|
migrationBuilder.AddColumn<double>(
|
|
name: "SumOfMarriedAllowance",
|
|
table: "InsuranceLists",
|
|
type: "float",
|
|
nullable: false,
|
|
defaultValue: 0.0);
|
|
|
|
migrationBuilder.AddColumn<double>(
|
|
name: "BaseYears",
|
|
table: "EmployeeInsurancListData",
|
|
type: "float",
|
|
nullable: false,
|
|
defaultValue: 0.0);
|
|
|
|
migrationBuilder.AddColumn<double>(
|
|
name: "DailyWagePlusBaseYears",
|
|
table: "EmployeeInsurancListData",
|
|
type: "float",
|
|
nullable: false,
|
|
defaultValue: 0.0);
|
|
|
|
migrationBuilder.AddColumn<double>(
|
|
name: "MarriedAllowance",
|
|
table: "EmployeeInsurancListData",
|
|
type: "float",
|
|
nullable: false,
|
|
defaultValue: 0.0);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "SumOfBaseYears",
|
|
table: "InsuranceLists");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SumOfDailyWagePlusBaseYears",
|
|
table: "InsuranceLists");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SumOfMarriedAllowance",
|
|
table: "InsuranceLists");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "BaseYears",
|
|
table: "EmployeeInsurancListData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "DailyWagePlusBaseYears",
|
|
table: "EmployeeInsurancListData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "MarriedAllowance",
|
|
table: "EmployeeInsurancListData");
|
|
}
|
|
}
|
|
}
|