52 lines
1.6 KiB
C#
52 lines
1.6 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace BMA.EHR.Recruit.Service.Migrations
|
|
{
|
|
/// <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");
|
|
}
|
|
}
|
|
}
|