99 lines
2.6 KiB
C#
99 lines
2.6 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace PARR.DAL.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class UpdTblHosts : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.RenameColumn(
|
|
name: "EK",
|
|
table: "Hosts",
|
|
newName: "WorkGroup");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "APP",
|
|
table: "Hosts",
|
|
type: "text",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "DB",
|
|
table: "Hosts",
|
|
type: "text",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "LinkEK",
|
|
table: "Hosts",
|
|
type: "text",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "OS",
|
|
table: "Hosts",
|
|
type: "text",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "RegionalEK",
|
|
table: "Hosts",
|
|
type: "text",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Responsible",
|
|
table: "Hosts",
|
|
type: "text",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Status",
|
|
table: "Hosts",
|
|
type: "text",
|
|
nullable: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "APP",
|
|
table: "Hosts");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "DB",
|
|
table: "Hosts");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "LinkEK",
|
|
table: "Hosts");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "OS",
|
|
table: "Hosts");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "RegionalEK",
|
|
table: "Hosts");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Responsible",
|
|
table: "Hosts");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Status",
|
|
table: "Hosts");
|
|
|
|
migrationBuilder.RenameColumn(
|
|
name: "WorkGroup",
|
|
table: "Hosts",
|
|
newName: "EK");
|
|
}
|
|
}
|
|
}
|