Files
Backend-Api/CompanyManagment.EFCore/Migrations/20240407172417_newLeavePayToChekout.cs
2024-07-05 21:36:15 +03:30

63 lines
1.8 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace CompanyManagment.EFCore.Migrations
{
/// <inheritdoc />
public partial class newLeavePayToChekout : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<double>(
name: "AbsencePeriod",
table: "Checkouts",
type: "float",
nullable: false,
defaultValue: 0.0);
migrationBuilder.AddColumn<double>(
name: "AverageHoursPerDay",
table: "Checkouts",
type: "float",
nullable: false,
defaultValue: 0.0);
migrationBuilder.AddColumn<double>(
name: "CreditLeaves",
table: "Checkouts",
type: "float",
nullable: false,
defaultValue: 0.0);
migrationBuilder.AddColumn<bool>(
name: "LeaveCheckout",
table: "Checkouts",
type: "bit",
nullable: false,
defaultValue: false);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "AbsencePeriod",
table: "Checkouts");
migrationBuilder.DropColumn(
name: "AverageHoursPerDay",
table: "Checkouts");
migrationBuilder.DropColumn(
name: "CreditLeaves",
table: "Checkouts");
migrationBuilder.DropColumn(
name: "LeaveCheckout",
table: "Checkouts");
}
}
}