using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Microsoft.SelfService.Portal.Core.API.Migrations { /// public partial class RemoveCloudEnabledFromEnvironment : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "CloudEnabled", table: "Environments"); migrationBuilder.AlterColumn( name: "TenantId", table: "Environments", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true) .Annotation("Relational:ColumnOrder", 4) .OldAnnotation("Relational:ColumnOrder", 5); migrationBuilder.AlterColumn( name: "SubscriptionId", table: "Environments", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true) .Annotation("Relational:ColumnOrder", 5) .OldAnnotation("Relational:ColumnOrder", 6); migrationBuilder.AlterColumn( name: "ProviderType", table: "Environments", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true) .Annotation("Relational:ColumnOrder", 3) .OldAnnotation("Relational:ColumnOrder", 4); migrationBuilder.AlterColumn( name: "MetadataJson", table: "Environments", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true) .Annotation("Relational:ColumnOrder", 6) .OldAnnotation("Relational:ColumnOrder", 7); migrationBuilder.AlterColumn( name: "EnvironmentType", table: "Environments", type: "nvarchar(max)", nullable: false, oldClrType: typeof(string), oldType: "nvarchar(max)") .Annotation("Relational:ColumnOrder", 2) .OldAnnotation("Relational:ColumnOrder", 3); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "TenantId", table: "Environments", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true) .Annotation("Relational:ColumnOrder", 5) .OldAnnotation("Relational:ColumnOrder", 4); migrationBuilder.AlterColumn( name: "SubscriptionId", table: "Environments", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true) .Annotation("Relational:ColumnOrder", 6) .OldAnnotation("Relational:ColumnOrder", 5); migrationBuilder.AlterColumn( name: "ProviderType", table: "Environments", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true) .Annotation("Relational:ColumnOrder", 4) .OldAnnotation("Relational:ColumnOrder", 3); migrationBuilder.AlterColumn( name: "MetadataJson", table: "Environments", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true) .Annotation("Relational:ColumnOrder", 7) .OldAnnotation("Relational:ColumnOrder", 6); migrationBuilder.AlterColumn( name: "EnvironmentType", table: "Environments", type: "nvarchar(max)", nullable: false, oldClrType: typeof(string), oldType: "nvarchar(max)") .Annotation("Relational:ColumnOrder", 3) .OldAnnotation("Relational:ColumnOrder", 2); migrationBuilder.AddColumn( name: "CloudEnabled", table: "Environments", type: "bit", nullable: false, defaultValue: false) .Annotation("Relational:ColumnOrder", 2); } } }