1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- 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));
- }
- }
- }
|