mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +01:00
36 lines
947 B
C#
36 lines
947 B
C#
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|||
|
#nullable disable
|
|||
|
|
|||
|
namespace Bit.MySqlMigrations.Migrations;
|
|||
|
|
|||
|
/// <inheritdoc />
|
|||
|
public partial class GroupAccessAllDefaultValue : Migration
|
|||
|
{
|
|||
|
/// <inheritdoc />
|
|||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.AlterColumn<bool>(
|
|||
|
name: "AccessAll",
|
|||
|
table: "Group",
|
|||
|
type: "tinyint(1)",
|
|||
|
nullable: false,
|
|||
|
defaultValue: false,
|
|||
|
oldClrType: typeof(bool),
|
|||
|
oldType: "tinyint(1)");
|
|||
|
}
|
|||
|
|
|||
|
/// <inheritdoc />
|
|||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.AlterColumn<bool>(
|
|||
|
name: "AccessAll",
|
|||
|
table: "Group",
|
|||
|
type: "tinyint(1)",
|
|||
|
nullable: false,
|
|||
|
oldClrType: typeof(bool),
|
|||
|
oldType: "tinyint(1)",
|
|||
|
oldDefaultValue: false);
|
|||
|
}
|
|||
|
}
|