using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace MTWorkHR.Infrastructure.Migrations
{
///
public partial class altrMeeting : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "EndDate",
table: "Meetings");
migrationBuilder.RenameColumn(
name: "StartDate",
table: "Meetings",
newName: "MeetingDate");
migrationBuilder.AddColumn(
name: "EndTime",
table: "Meetings",
type: "nvarchar(max)",
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "RepeatId",
table: "Meetings",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn(
name: "StartTime",
table: "Meetings",
type: "nvarchar(max)",
nullable: false,
defaultValue: "");
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "EndTime",
table: "Meetings");
migrationBuilder.DropColumn(
name: "RepeatId",
table: "Meetings");
migrationBuilder.DropColumn(
name: "StartTime",
table: "Meetings");
migrationBuilder.RenameColumn(
name: "MeetingDate",
table: "Meetings",
newName: "StartDate");
migrationBuilder.AddColumn(
name: "EndDate",
table: "Meetings",
type: "datetime2",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
}
}
}