1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-29 13:25:17 +01:00
bitwarden-server/util/PostgresMigrations/Migrations/20230530114251_AddSecretsManagerBillingFieldToOrganization.cs

67 lines
1.8 KiB
C#
Raw Normal View History

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Bit.PostgresMigrations.Migrations;
public partial class AddSecretsManagerBillingFieldToOrganization : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "MaxAutoscaleSmSeats",
table: "Organization",
type: "integer",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "MaxAutoscaleSmServiceAccounts",
table: "Organization",
type: "integer",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "SmSeats",
table: "Organization",
type: "integer",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "SmServiceAccounts",
table: "Organization",
type: "integer",
nullable: true);
migrationBuilder.AddColumn<bool>(
name: "UsePasswordManager",
table: "Organization",
type: "boolean",
nullable: false,
defaultValue: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "MaxAutoscaleSmSeats",
table: "Organization");
migrationBuilder.DropColumn(
name: "MaxAutoscaleSmServiceAccounts",
table: "Organization");
migrationBuilder.DropColumn(
name: "SmSeats",
table: "Organization");
migrationBuilder.DropColumn(
name: "SmServiceAccounts",
table: "Organization");
migrationBuilder.DropColumn(
name: "UsePasswordManager",
table: "Organization");
}
}