using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Marco.Pms.DataAccess.Migrations
{
///
public partial class addEmergencyContactPersonInEmployeeModel : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn(
name: "EmergencyContactPerson",
table: "Employees",
type: "longtext",
nullable: false)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn(
name: "IsActive",
table: "Employees",
type: "tinyint(1)",
nullable: false,
defaultValue: false);
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "EmergencyContactPerson",
table: "Employees");
migrationBuilder.DropColumn(
name: "IsActive",
table: "Employees");
}
}
}