mirror of
https://github.com/bitwarden/server.git
synced 2025-01-09 19:57:37 +01:00
1f1510f4d4
Add a new column called UseRiskInsights to `dbo.Organization`
29 lines
717 B
C#
29 lines
717 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Bit.MySqlMigrations.Migrations;
|
|
|
|
/// <inheritdoc />
|
|
public partial class AddUseRiskInsightsFlag : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "UseRiskInsights",
|
|
table: "Organization",
|
|
type: "tinyint(1)",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "UseRiskInsights",
|
|
table: "Organization");
|
|
}
|
|
}
|