mirror of
https://github.com/bitwarden/server.git
synced 2024-11-25 12:45:18 +01:00
40 lines
1.0 KiB
C#
40 lines
1.0 KiB
C#
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|||
|
#nullable disable
|
|||
|
|
|||
|
namespace Bit.PostgresMigrations.Migrations;
|
|||
|
|
|||
|
/// <inheritdoc />
|
|||
|
public partial class _20230711_00_CollectionManagePermissionsql : Migration
|
|||
|
{
|
|||
|
/// <inheritdoc />
|
|||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.AddColumn<bool>(
|
|||
|
name: "Manage",
|
|||
|
table: "CollectionUsers",
|
|||
|
type: "boolean",
|
|||
|
nullable: false,
|
|||
|
defaultValue: false);
|
|||
|
|
|||
|
migrationBuilder.AddColumn<bool>(
|
|||
|
name: "Manage",
|
|||
|
table: "CollectionGroups",
|
|||
|
type: "boolean",
|
|||
|
nullable: false,
|
|||
|
defaultValue: false);
|
|||
|
}
|
|||
|
|
|||
|
/// <inheritdoc />
|
|||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "Manage",
|
|||
|
table: "CollectionUsers");
|
|||
|
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "Manage",
|
|||
|
table: "CollectionGroups");
|
|||
|
}
|
|||
|
}
|