53 lines
1.4 KiB
C#
53 lines
1.4 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace CompanyManagment.EFCore.Migrations
|
|
{
|
|
public partial class addNewToCheckout : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ArchiveCode",
|
|
table: "Checkouts",
|
|
type: "nvarchar(15)",
|
|
maxLength: 15,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PersonnelCode",
|
|
table: "Checkouts",
|
|
type: "nvarchar(10)",
|
|
maxLength: 10,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SumOfWorkingDays",
|
|
table: "Checkouts",
|
|
type: "nvarchar(6)",
|
|
maxLength: 6,
|
|
nullable: true);
|
|
|
|
|
|
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "ArchiveCode",
|
|
table: "Checkouts");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PersonnelCode",
|
|
table: "Checkouts");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SumOfWorkingDays",
|
|
table: "Checkouts");
|
|
|
|
|
|
}
|
|
}
|
|
}
|