1
0
mirror of https://github.com/bitwarden/server synced 2026-01-03 00:53:37 +00:00

Merge remote-tracking branch 'origin/main' into arch/seeder-api

This commit is contained in:
Matt Gibson
2025-11-04 21:43:51 -08:00
258 changed files with 23154 additions and 2234 deletions

View File

@@ -0,0 +1,137 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Bit.SqliteMigrations.Migrations;
/// <inheritdoc />
public partial class _20251028_00_AddOrganizationReportMetricColumns : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "ApplicationAtRiskCount",
table: "OrganizationReport",
type: "INTEGER",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "ApplicationCount",
table: "OrganizationReport",
type: "INTEGER",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "CriticalApplicationAtRiskCount",
table: "OrganizationReport",
type: "INTEGER",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "CriticalApplicationCount",
table: "OrganizationReport",
type: "INTEGER",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "CriticalMemberAtRiskCount",
table: "OrganizationReport",
type: "INTEGER",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "CriticalMemberCount",
table: "OrganizationReport",
type: "INTEGER",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "CriticalPasswordAtRiskCount",
table: "OrganizationReport",
type: "INTEGER",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "CriticalPasswordCount",
table: "OrganizationReport",
type: "INTEGER",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "MemberAtRiskCount",
table: "OrganizationReport",
type: "INTEGER",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "MemberCount",
table: "OrganizationReport",
type: "INTEGER",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "PasswordAtRiskCount",
table: "OrganizationReport",
type: "INTEGER",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "PasswordCount",
table: "OrganizationReport",
type: "INTEGER",
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ApplicationAtRiskCount",
table: "OrganizationReport");
migrationBuilder.DropColumn(
name: "ApplicationCount",
table: "OrganizationReport");
migrationBuilder.DropColumn(
name: "CriticalApplicationAtRiskCount",
table: "OrganizationReport");
migrationBuilder.DropColumn(
name: "CriticalApplicationCount",
table: "OrganizationReport");
migrationBuilder.DropColumn(
name: "CriticalMemberAtRiskCount",
table: "OrganizationReport");
migrationBuilder.DropColumn(
name: "CriticalMemberCount",
table: "OrganizationReport");
migrationBuilder.DropColumn(
name: "CriticalPasswordAtRiskCount",
table: "OrganizationReport");
migrationBuilder.DropColumn(
name: "CriticalPasswordCount",
table: "OrganizationReport");
migrationBuilder.DropColumn(
name: "MemberAtRiskCount",
table: "OrganizationReport");
migrationBuilder.DropColumn(
name: "MemberCount",
table: "OrganizationReport");
migrationBuilder.DropColumn(
name: "PasswordAtRiskCount",
table: "OrganizationReport");
migrationBuilder.DropColumn(
name: "PasswordCount",
table: "OrganizationReport");
}
}

View File

@@ -1003,6 +1003,12 @@ namespace Bit.SqliteMigrations.Migrations
b.Property<Guid>("Id")
.HasColumnType("TEXT");
b.Property<int?>("ApplicationAtRiskCount")
.HasColumnType("INTEGER");
b.Property<int?>("ApplicationCount")
.HasColumnType("INTEGER");
b.Property<string>("ApplicationData")
.HasColumnType("TEXT");
@@ -1013,9 +1019,39 @@ namespace Bit.SqliteMigrations.Migrations
b.Property<DateTime>("CreationDate")
.HasColumnType("TEXT");
b.Property<int?>("CriticalApplicationAtRiskCount")
.HasColumnType("INTEGER");
b.Property<int?>("CriticalApplicationCount")
.HasColumnType("INTEGER");
b.Property<int?>("CriticalMemberAtRiskCount")
.HasColumnType("INTEGER");
b.Property<int?>("CriticalMemberCount")
.HasColumnType("INTEGER");
b.Property<int?>("CriticalPasswordAtRiskCount")
.HasColumnType("INTEGER");
b.Property<int?>("CriticalPasswordCount")
.HasColumnType("INTEGER");
b.Property<int?>("MemberAtRiskCount")
.HasColumnType("INTEGER");
b.Property<int?>("MemberCount")
.HasColumnType("INTEGER");
b.Property<Guid>("OrganizationId")
.HasColumnType("TEXT");
b.Property<int?>("PasswordAtRiskCount")
.HasColumnType("INTEGER");
b.Property<int?>("PasswordCount")
.HasColumnType("INTEGER");
b.Property<string>("ReportData")
.IsRequired()
.HasColumnType("TEXT");