mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +01:00
fed0828677
* 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
66 lines
1.8 KiB
C#
66 lines
1.8 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Bit.SqliteMigrations.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: "INTEGER",
|
|
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");
|
|
}
|
|
}
|