2023-04-06 16:38:26 +07:00
|
|
|
|
using System;
|
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
|
|
|
|
|
|
|
|
#nullable disable
|
|
|
|
|
|
|
2026-05-12 16:32:46 +07:00
|
|
|
|
namespace BMA.EHR.Recruit.Migrations
|
2023-04-06 16:38:26 +07:00
|
|
|
|
{
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
|
public partial class UpdateRecruitmissingfield : Migration
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
|
|
|
|
{
|
|
|
|
|
|
migrationBuilder.AddColumn<DateTime>(
|
|
|
|
|
|
name: "ApplyDate",
|
|
|
|
|
|
table: "Recruits",
|
|
|
|
|
|
type: "datetime(6)",
|
|
|
|
|
|
nullable: false,
|
|
|
|
|
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
|
|
|
|
|
|
|
|
|
|
|
migrationBuilder.AddColumn<DateTime>(
|
|
|
|
|
|
name: "CreatedDate",
|
|
|
|
|
|
table: "Recruits",
|
|
|
|
|
|
type: "datetime(6)",
|
|
|
|
|
|
nullable: false,
|
|
|
|
|
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
|
|
|
|
|
|
|
|
|
|
|
migrationBuilder.AddColumn<DateTime>(
|
|
|
|
|
|
name: "ModifiedDate",
|
|
|
|
|
|
table: "Recruits",
|
|
|
|
|
|
type: "datetime(6)",
|
|
|
|
|
|
nullable: false,
|
|
|
|
|
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
|
|
|
|
{
|
|
|
|
|
|
migrationBuilder.DropColumn(
|
|
|
|
|
|
name: "ApplyDate",
|
|
|
|
|
|
table: "Recruits");
|
|
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropColumn(
|
|
|
|
|
|
name: "CreatedDate",
|
|
|
|
|
|
table: "Recruits");
|
|
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropColumn(
|
|
|
|
|
|
name: "ModifiedDate",
|
|
|
|
|
|
table: "Recruits");
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|