52 lines
1.5 KiB
C#
52 lines
1.5 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Microsoft.SelfService.Portal.Core.API.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class RemoveRoleDefinitionSizingFields : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "DefaultStageOrder",
|
|
table: "ServiceRoleDefinitions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "MaxCount",
|
|
table: "ServiceRoleDefinitions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "MinCount",
|
|
table: "ServiceRoleDefinitions");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "DefaultStageOrder",
|
|
table: "ServiceRoleDefinitions",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "MaxCount",
|
|
table: "ServiceRoleDefinitions",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "MinCount",
|
|
table: "ServiceRoleDefinitions",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
}
|
|
}
|
|
}
|