122 lines
3.9 KiB
C#
122 lines
3.9 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace CompanyManagment.EFCore.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class addinspectiondebtapprovaltoinsurancelist : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<double>(
|
|
name: "Debt_Amount",
|
|
table: "InsuranceLists",
|
|
type: "float",
|
|
nullable: false,
|
|
defaultValue: 0.0);
|
|
|
|
migrationBuilder.AddColumn<DateTime>(
|
|
name: "Debt_DebtDate",
|
|
table: "InsuranceLists",
|
|
type: "datetime2",
|
|
nullable: false,
|
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
|
|
|
migrationBuilder.AddColumn<long>(
|
|
name: "Debt_MediaId",
|
|
table: "InsuranceLists",
|
|
type: "bigint",
|
|
nullable: false,
|
|
defaultValue: 0L);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Debt_Type",
|
|
table: "InsuranceLists",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
defaultValue: "None");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "EmployerApproval_Description",
|
|
table: "InsuranceLists",
|
|
type: "nvarchar(500)",
|
|
maxLength: 500,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "EmployerApproval_Status",
|
|
table: "InsuranceLists",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
defaultValue: "None");
|
|
|
|
migrationBuilder.AddColumn<DateTime>(
|
|
name: "Inspection_LastInspectionDateTime",
|
|
table: "InsuranceLists",
|
|
type: "datetime2",
|
|
nullable: false,
|
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
|
|
|
migrationBuilder.AddColumn<long>(
|
|
name: "Inspection_MediaId",
|
|
table: "InsuranceLists",
|
|
type: "bigint",
|
|
nullable: false,
|
|
defaultValue: 0L);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Inspection_Type",
|
|
table: "InsuranceLists",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
defaultValue: "None");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "Debt_Amount",
|
|
table: "InsuranceLists");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Debt_DebtDate",
|
|
table: "InsuranceLists");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Debt_MediaId",
|
|
table: "InsuranceLists");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Debt_Type",
|
|
table: "InsuranceLists");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "EmployerApproval_Description",
|
|
table: "InsuranceLists");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "EmployerApproval_Status",
|
|
table: "InsuranceLists");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Inspection_LastInspectionDateTime",
|
|
table: "InsuranceLists");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Inspection_MediaId",
|
|
table: "InsuranceLists");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Inspection_Type",
|
|
table: "InsuranceLists");
|
|
}
|
|
}
|
|
}
|