using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace MTWorkHR.Infrastructure.Migrations
{
///
public partial class altrTeamMeet : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "MeetingDateTime",
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));
migrationBuilder.AddColumn(
name: "Location",
table: "Meetings",
type: "nvarchar(250)",
maxLength: 250,
nullable: true);
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "EndDate",
table: "Meetings");
migrationBuilder.DropColumn(
name: "Location",
table: "Meetings");
migrationBuilder.RenameColumn(
name: "StartDate",
table: "Meetings",
newName: "MeetingDateTime");
}
}
}