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