mirror of
https://github.com/bitwarden/server.git
synced 2025-04-12 16:48:12 -05:00
50 lines
1.3 KiB
C#
50 lines
1.3 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Bit.PostgresMigrations.Migrations;
|
|
|
|
/// <inheritdoc />
|
|
public partial class PM17830_AdminInitiatedSponsorships : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "IsAdminInitiated",
|
|
table: "OrganizationSponsorship",
|
|
type: "boolean",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Notes",
|
|
table: "OrganizationSponsorship",
|
|
type: "text",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "UseAdminSponsoredFamilies",
|
|
table: "Organization",
|
|
type: "boolean",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "IsAdminInitiated",
|
|
table: "OrganizationSponsorship");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Notes",
|
|
table: "OrganizationSponsorship");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "UseAdminSponsoredFamilies",
|
|
table: "Organization");
|
|
}
|
|
}
|