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