mirror of
https://github.com/bitwarden/server.git
synced 2026-06-01 01:55:55 -05:00
* feat(admin): add exempt from billing automation toggle for organizations * style: apply file-scoped namespaces to EF migration files * chore: rename migration to avoid sequence collision with 2026-04-10_00 * fix(sql): refresh Organization-dependent views after column addition * fix(sql): rename migration to resolve ordering conflict
29 lines
763 B
C#
29 lines
763 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Bit.PostgresMigrations.Migrations;
|
|
|
|
/// <inheritdoc />
|
|
public partial class AddExemptFromBillingAutomationToOrganization : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "ExemptFromBillingAutomation",
|
|
table: "Organization",
|
|
type: "boolean",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "ExemptFromBillingAutomation",
|
|
table: "Organization");
|
|
}
|
|
}
|