51 lines
1.4 KiB
C#
51 lines
1.4 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace CompanyManagment.EFCore.Migrations
|
|
{
|
|
public partial class institutionContrctEdit : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "Year",
|
|
table: "InstitutionContracts");
|
|
|
|
migrationBuilder.RenameColumn(
|
|
name: "Month",
|
|
table: "InstitutionContracts",
|
|
newName: "EmployeeManualCount");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "WorkshopManualCount",
|
|
table: "InstitutionContracts",
|
|
type: "nvarchar(5)",
|
|
maxLength: 5,
|
|
nullable: true);
|
|
|
|
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "WorkshopManualCount",
|
|
table: "InstitutionContracts");
|
|
|
|
migrationBuilder.RenameColumn(
|
|
name: "EmployeeManualCount",
|
|
table: "InstitutionContracts",
|
|
newName: "Month");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Year",
|
|
table: "InstitutionContracts",
|
|
type: "nvarchar(4)",
|
|
maxLength: 4,
|
|
nullable: true);
|
|
|
|
|
|
}
|
|
}
|
|
}
|