mirror of
https://github.com/bitwarden/server.git
synced 2024-11-30 13:33:24 +01:00
f04c3b8e54
* Remove Group.AccessAll from code * Add shadow property config and migration
36 lines
938 B
C#
36 lines
938 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Bit.PostgresMigrations.Migrations;
|
|
|
|
/// <inheritdoc />
|
|
public partial class GroupAccessAllDefaultValue : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "AccessAll",
|
|
table: "Group",
|
|
type: "boolean",
|
|
nullable: false,
|
|
defaultValue: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "boolean");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "AccessAll",
|
|
table: "Group",
|
|
type: "boolean",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "boolean",
|
|
oldDefaultValue: false);
|
|
}
|
|
}
|