1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 07:36:14 -05:00

[PM-10368] Drop Group.AccessAll (#4700)

- Add default constraint
- Update sprocs to remove column
- Drop column
This commit is contained in:
Thomas Rittson
2024-09-02 15:01:32 +10:00
committed by GitHub
parent 0d11e03bf7
commit 0da62f9cee
18 changed files with 8368 additions and 29 deletions

View File

@ -0,0 +1,28 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Bit.MySqlMigrations.Migrations;
/// <inheritdoc />
public partial class DropGroupAccessAll : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "AccessAll",
table: "Group");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "AccessAll",
table: "Group",
type: "tinyint(1)",
nullable: false,
defaultValue: false);
}
}