You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.8 KiB
66 lines
1.8 KiB
using Microsoft.EntityFrameworkCore.Migrations; |
|
|
|
#nullable disable |
|
|
|
namespace Bit.MySqlMigrations.Migrations; |
|
|
|
public partial class AddSecretsManagerBillingFieldToOrganization : Migration |
|
{ |
|
protected override void Up(MigrationBuilder migrationBuilder) |
|
{ |
|
migrationBuilder.AddColumn<int>( |
|
name: "MaxAutoscaleSmSeats", |
|
table: "Organization", |
|
type: "int", |
|
nullable: true); |
|
|
|
migrationBuilder.AddColumn<int>( |
|
name: "MaxAutoscaleSmServiceAccounts", |
|
table: "Organization", |
|
type: "int", |
|
nullable: true); |
|
|
|
migrationBuilder.AddColumn<int>( |
|
name: "SmSeats", |
|
table: "Organization", |
|
type: "int", |
|
nullable: true); |
|
|
|
migrationBuilder.AddColumn<int>( |
|
name: "SmServiceAccounts", |
|
table: "Organization", |
|
type: "int", |
|
nullable: true); |
|
|
|
migrationBuilder.AddColumn<bool>( |
|
name: "UsePasswordManager", |
|
table: "Organization", |
|
type: "tinyint(1)", |
|
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"); |
|
} |
|
} |
|
|
|
|