1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-05 05:00:19 -05:00

run dotnet format

This commit is contained in:
Brandon 2025-03-27 12:22:38 -04:00
parent c473bafaa4
commit 1bf2de052d
No known key found for this signature in database
GPG Key ID: A0E0EF0B207BA40D
3 changed files with 54 additions and 57 deletions

View File

@ -2,28 +2,27 @@
#nullable disable #nullable disable
namespace Bit.MySqlMigrations.Migrations namespace Bit.MySqlMigrations.Migrations;
/// <inheritdoc />
public partial class AddUseOrganizationDomains : Migration
{ {
/// <inheritdoc /> /// <inheritdoc />
public partial class AddUseOrganizationDomains : Migration protected override void Up(MigrationBuilder migrationBuilder)
{ {
/// <inheritdoc /> migrationBuilder.AddColumn<bool>(
protected override void Up(MigrationBuilder migrationBuilder) name: "UseOrganizationDomains",
{ table: "Organization",
migrationBuilder.AddColumn<bool>( type: "tinyint(1)",
name: "UseOrganizationDomains", nullable: false,
table: "Organization", defaultValue: false);
type: "tinyint(1)", }
nullable: false,
defaultValue: false);
}
/// <inheritdoc /> /// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder) protected override void Down(MigrationBuilder migrationBuilder)
{ {
migrationBuilder.DropColumn( migrationBuilder.DropColumn(
name: "UseOrganizationDomains", name: "UseOrganizationDomains",
table: "Organization"); table: "Organization");
}
} }
} }

View File

@ -2,28 +2,27 @@
#nullable disable #nullable disable
namespace Bit.PostgresMigrations.Migrations namespace Bit.PostgresMigrations.Migrations;
/// <inheritdoc />
public partial class AddUseOrganizationDomains : Migration
{ {
/// <inheritdoc /> /// <inheritdoc />
public partial class AddUseOrganizationDomains : Migration protected override void Up(MigrationBuilder migrationBuilder)
{ {
/// <inheritdoc /> migrationBuilder.AddColumn<bool>(
protected override void Up(MigrationBuilder migrationBuilder) name: "UseOrganizationDomains",
{ table: "Organization",
migrationBuilder.AddColumn<bool>( type: "boolean",
name: "UseOrganizationDomains", nullable: false,
table: "Organization", defaultValue: false);
type: "boolean", }
nullable: false,
defaultValue: false);
}
/// <inheritdoc /> /// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder) protected override void Down(MigrationBuilder migrationBuilder)
{ {
migrationBuilder.DropColumn( migrationBuilder.DropColumn(
name: "UseOrganizationDomains", name: "UseOrganizationDomains",
table: "Organization"); table: "Organization");
}
} }
} }

View File

@ -2,28 +2,27 @@
#nullable disable #nullable disable
namespace Bit.SqliteMigrations.Migrations namespace Bit.SqliteMigrations.Migrations;
/// <inheritdoc />
public partial class AddUseOrganizationDomains : Migration
{ {
/// <inheritdoc /> /// <inheritdoc />
public partial class AddUseOrganizationDomains : Migration protected override void Up(MigrationBuilder migrationBuilder)
{ {
/// <inheritdoc /> migrationBuilder.AddColumn<bool>(
protected override void Up(MigrationBuilder migrationBuilder) name: "UseOrganizationDomains",
{ table: "Organization",
migrationBuilder.AddColumn<bool>( type: "INTEGER",
name: "UseOrganizationDomains", nullable: false,
table: "Organization", defaultValue: false);
type: "INTEGER", }
nullable: false,
defaultValue: false);
}
/// <inheritdoc /> /// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder) protected override void Down(MigrationBuilder migrationBuilder)
{ {
migrationBuilder.DropColumn( migrationBuilder.DropColumn(
name: "UseOrganizationDomains", name: "UseOrganizationDomains",
table: "Organization"); table: "Organization");
}
} }
} }