Files
server/util/PostgresMigrations/Migrations/20260409143838_AddRevocationReasonToOrganizationUser.cs
sven-bitwarden ec01e81b05 [PM-33866] Revocation Reasons: DDL Edition (#7432)
* Initial pass of revocation reason

* 2'nd pass, with tests, of revocation reason

* separate migration concerns, begin using new bulk sprocs

* remove old RevokeManyByIdAsync in favor of RevokeManyAsync

* fix migrations order

* Adjust other missing sprocs

* begrudgingly formats file

* No longer drop now-deprecated sprocs

* Add more views to refresh

* re-adds stored procs

* formatting from restoration

* Fix naming

* Modify sproc file name to match name
2026-04-15 14:20:45 -05:00

28 lines
709 B
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Bit.PostgresMigrations.Migrations;
/// <inheritdoc />
public partial class AddRevocationReasonToOrganizationUser : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<byte>(
name: "RevocationReason",
table: "OrganizationUser",
type: "smallint",
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "RevocationReason",
table: "OrganizationUser");
}
}