mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 15:42:48 -05:00
[AC 1427]Add New Organisation Properties Update DB Objects and create migration (#2980)
* Add new properties to organization * Add new properties to organization * Create migration * Add the columns to the view * Fix the syntax error * Change the namespaces * Remove the comma on the stripe file * Remove the nulls * Resolving the PR comments * Add a refresh for OrganizationView * Remove the True default values * Resolve the comments
This commit is contained in:
2216
util/PostgresMigrations/Migrations/20230530114251_AddSecretsManagerBillingFieldToOrganization.Designer.cs
generated
Normal file
2216
util/PostgresMigrations/Migrations/20230530114251_AddSecretsManagerBillingFieldToOrganization.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,66 @@
|
||||
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");
|
||||
}
|
||||
}
|
||||
|
@ -572,6 +572,12 @@ namespace Bit.PostgresMigrations.Migrations
|
||||
b.Property<int?>("MaxAutoscaleSeats")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int?>("MaxAutoscaleSmSeats")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int?>("MaxAutoscaleSmServiceAccounts")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<short?>("MaxCollections")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
@ -610,6 +616,12 @@ namespace Bit.PostgresMigrations.Migrations
|
||||
b.Property<bool>("SelfHost")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<int?>("SmSeats")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int?>("SmServiceAccounts")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<byte>("Status")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
@ -640,6 +652,9 @@ namespace Bit.PostgresMigrations.Migrations
|
||||
b.Property<bool>("UseKeyConnector")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("UsePasswordManager")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("UsePolicies")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
|
Reference in New Issue
Block a user