using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Microsoft.SelfService.Portal.Core.API.Migrations
{
///
public partial class AddEnvironmentAndTargetProviderModel : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn(
name: "ExternalId",
table: "VirtualMachines",
type: "nvarchar(max)",
nullable: true)
.Annotation("Relational:ColumnOrder", 5);
migrationBuilder.AddColumn(
name: "MetadataJson",
table: "VirtualMachines",
type: "nvarchar(max)",
nullable: true)
.Annotation("Relational:ColumnOrder", 6);
migrationBuilder.AddColumn(
name: "ProviderType",
table: "VirtualMachines",
type: "nvarchar(max)",
nullable: true)
.Annotation("Relational:ColumnOrder", 4);
migrationBuilder.AddColumn(
name: "TargetType",
table: "VirtualMachines",
type: "nvarchar(max)",
nullable: false,
defaultValue: "")
.Annotation("Relational:ColumnOrder", 3);
migrationBuilder.AddColumn(
name: "EnvironmentType",
table: "Environments",
type: "nvarchar(max)",
nullable: false,
defaultValue: "")
.Annotation("Relational:ColumnOrder", 3);
migrationBuilder.AddColumn(
name: "MetadataJson",
table: "Environments",
type: "nvarchar(max)",
nullable: true)
.Annotation("Relational:ColumnOrder", 7);
migrationBuilder.AddColumn(
name: "ProviderType",
table: "Environments",
type: "nvarchar(max)",
nullable: true)
.Annotation("Relational:ColumnOrder", 4);
migrationBuilder.AddColumn(
name: "SubscriptionId",
table: "Environments",
type: "nvarchar(max)",
nullable: true)
.Annotation("Relational:ColumnOrder", 6);
migrationBuilder.AddColumn(
name: "TenantId",
table: "Environments",
type: "nvarchar(max)",
nullable: true)
.Annotation("Relational:ColumnOrder", 5);
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ExternalId",
table: "VirtualMachines");
migrationBuilder.DropColumn(
name: "MetadataJson",
table: "VirtualMachines");
migrationBuilder.DropColumn(
name: "ProviderType",
table: "VirtualMachines");
migrationBuilder.DropColumn(
name: "TargetType",
table: "VirtualMachines");
migrationBuilder.DropColumn(
name: "EnvironmentType",
table: "Environments");
migrationBuilder.DropColumn(
name: "MetadataJson",
table: "Environments");
migrationBuilder.DropColumn(
name: "ProviderType",
table: "Environments");
migrationBuilder.DropColumn(
name: "SubscriptionId",
table: "Environments");
migrationBuilder.DropColumn(
name: "TenantId",
table: "Environments");
}
}
}