1
0
mirror of https://github.com/bitwarden/server synced 2026-02-26 09:23:28 +00:00

dotnet format

This commit is contained in:
Thomas Rittson
2026-01-01 14:13:21 +10:00
parent 6bcc17f02a
commit 8212af5230
6 changed files with 88 additions and 97 deletions

View File

@@ -12,7 +12,6 @@ using Bit.Core.Billing.Enums;
using Bit.Core.Entities;
using Bit.Core.Enums;
using Bit.Core.Exceptions;
using Bit.Core.Models.Data;
using Bit.Core.Platform.Push;
using Bit.Core.Repositories;
using Bit.Core.Services;

View File

@@ -9,7 +9,6 @@ using Bit.Core.AdminConsole.Utilities.v2;
using Bit.Core.AdminConsole.Utilities.v2.Validation;
using Bit.Core.Entities;
using Bit.Core.Enums;
using Bit.Core.Models.Data;
using Bit.Core.Platform.Push;
using Bit.Core.Repositories;
using Bit.Core.Services;

View File

@@ -12,7 +12,6 @@ using Bit.Core.Billing.Enums;
using Bit.Core.Entities;
using Bit.Core.Enums;
using Bit.Core.Exceptions;
using Bit.Core.Models.Data;
using Bit.Core.Models.Data.Organizations.OrganizationUsers;
using Bit.Core.Platform.Push;
using Bit.Core.Repositories;

View File

@@ -1,41 +1,39 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Bit.MySqlMigrations.Migrations
namespace Bit.MySqlMigrations.Migrations;
/// <inheritdoc />
public partial class DefaultCollectionSemaphore : Migration
{
/// <inheritdoc />
public partial class DefaultCollectionSemaphore : Migration
protected override void Up(MigrationBuilder migrationBuilder)
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "DefaultCollectionSemaphore",
columns: table => new
{
OrganizationUserId = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
CreationDate = table.Column<DateTime>(type: "datetime(6)", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_DefaultCollectionSemaphore", x => x.OrganizationUserId);
table.ForeignKey(
name: "FK_DefaultCollectionSemaphore_OrganizationUser_OrganizationUser~",
column: x => x.OrganizationUserId,
principalTable: "OrganizationUser",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
})
.Annotation("MySql:CharSet", "utf8mb4");
}
migrationBuilder.CreateTable(
name: "DefaultCollectionSemaphore",
columns: table => new
{
OrganizationUserId = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
CreationDate = table.Column<DateTime>(type: "datetime(6)", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_DefaultCollectionSemaphore", x => x.OrganizationUserId);
table.ForeignKey(
name: "FK_DefaultCollectionSemaphore_OrganizationUser_OrganizationUser~",
column: x => x.OrganizationUserId,
principalTable: "OrganizationUser",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
})
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "DefaultCollectionSemaphore");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "DefaultCollectionSemaphore");
}
}

View File

@@ -1,40 +1,38 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Bit.PostgresMigrations.Migrations
namespace Bit.PostgresMigrations.Migrations;
/// <inheritdoc />
public partial class DefaultCollectionSemaphore : Migration
{
/// <inheritdoc />
public partial class DefaultCollectionSemaphore : Migration
protected override void Up(MigrationBuilder migrationBuilder)
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "DefaultCollectionSemaphore",
columns: table => new
{
OrganizationUserId = table.Column<Guid>(type: "uuid", nullable: false),
CreationDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_DefaultCollectionSemaphore", x => x.OrganizationUserId);
table.ForeignKey(
name: "FK_DefaultCollectionSemaphore_OrganizationUser_OrganizationUse~",
column: x => x.OrganizationUserId,
principalTable: "OrganizationUser",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
}
migrationBuilder.CreateTable(
name: "DefaultCollectionSemaphore",
columns: table => new
{
OrganizationUserId = table.Column<Guid>(type: "uuid", nullable: false),
CreationDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_DefaultCollectionSemaphore", x => x.OrganizationUserId);
table.ForeignKey(
name: "FK_DefaultCollectionSemaphore_OrganizationUser_OrganizationUse~",
column: x => x.OrganizationUserId,
principalTable: "OrganizationUser",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "DefaultCollectionSemaphore");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "DefaultCollectionSemaphore");
}
}

View File

@@ -1,40 +1,38 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Bit.SqliteMigrations.Migrations
namespace Bit.SqliteMigrations.Migrations;
/// <inheritdoc />
public partial class DefaultCollectionSemaphore : Migration
{
/// <inheritdoc />
public partial class DefaultCollectionSemaphore : Migration
protected override void Up(MigrationBuilder migrationBuilder)
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "DefaultCollectionSemaphore",
columns: table => new
{
OrganizationUserId = table.Column<Guid>(type: "TEXT", nullable: false),
CreationDate = table.Column<DateTime>(type: "TEXT", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_DefaultCollectionSemaphore", x => x.OrganizationUserId);
table.ForeignKey(
name: "FK_DefaultCollectionSemaphore_OrganizationUser_OrganizationUserId",
column: x => x.OrganizationUserId,
principalTable: "OrganizationUser",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
}
migrationBuilder.CreateTable(
name: "DefaultCollectionSemaphore",
columns: table => new
{
OrganizationUserId = table.Column<Guid>(type: "TEXT", nullable: false),
CreationDate = table.Column<DateTime>(type: "TEXT", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_DefaultCollectionSemaphore", x => x.OrganizationUserId);
table.ForeignKey(
name: "FK_DefaultCollectionSemaphore_OrganizationUser_OrganizationUserId",
column: x => x.OrganizationUserId,
principalTable: "OrganizationUser",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "DefaultCollectionSemaphore");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "DefaultCollectionSemaphore");
}
}