mirror of
https://github.com/bitwarden/server.git
synced 2026-06-01 01:55:55 -05:00
* 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
28 lines
709 B
C#
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");
|
|
}
|
|
}
|