Browse Source

fix lint issues and sql csproj (#2627)

pull/2631/head
Kyle Spearrin 3 years ago committed by GitHub
parent
commit
7c55d56561
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/Sql/Sql.sqlproj
  2. 47
      util/MySqlMigrations/Migrations/20230124132226_KDFOptions.cs
  3. 47
      util/PostgresMigrations/Migrations/20230124132215_KDFOptions.cs
  4. 47
      util/SqliteMigrations/Migrations/20230124132220_KDFOptions.cs

6
src/Sql/Sql.sqlproj

@ -68,6 +68,12 @@ @@ -68,6 +68,12 @@
<Folder Include="dbo\Stored Procedures\" />
<Folder Include="dbo\User Defined Types\" />
<Folder Include="dbo\Stored Procedures\ApiKey\" />
<Folder Include="SecretsManager\" />
<Folder Include="SecretsManager\dbo\" />
<Folder Include="SecretsManager\dbo\Stored Procedures\" />
<Folder Include="SecretsManager\dbo\Stored Procedures\ApiKey\" />
<Folder Include="SecretsManager\dbo\Tables\" />
<Folder Include="SecretsManager\dbo\Views\" />
</ItemGroup>
<ItemGroup>
<Build Include="dbo\Functions\CipherDetails.sql" />

47
util/MySqlMigrations/Migrations/20230124132226_KDFOptions.cs

@ -2,34 +2,33 @@ @@ -2,34 +2,33 @@
#nullable disable
namespace Bit.MySqlMigrations.Migrations
namespace Bit.MySqlMigrations.Migrations;
public partial class KDFOptions : Migration
{
public partial class KDFOptions : Migration
protected override void Up(MigrationBuilder migrationBuilder)
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "KdfMemory",
table: "User",
type: "int",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "KdfMemory",
table: "User",
type: "int",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "KdfParallelism",
table: "User",
type: "int",
nullable: true);
}
migrationBuilder.AddColumn<int>(
name: "KdfParallelism",
table: "User",
type: "int",
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "KdfMemory",
table: "User");
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "KdfMemory",
table: "User");
migrationBuilder.DropColumn(
name: "KdfParallelism",
table: "User");
}
migrationBuilder.DropColumn(
name: "KdfParallelism",
table: "User");
}
}

47
util/PostgresMigrations/Migrations/20230124132215_KDFOptions.cs

@ -2,34 +2,33 @@ @@ -2,34 +2,33 @@
#nullable disable
namespace Bit.PostgresMigrations.Migrations
namespace Bit.PostgresMigrations.Migrations;
public partial class KDFOptions : Migration
{
public partial class KDFOptions : Migration
protected override void Up(MigrationBuilder migrationBuilder)
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "KdfMemory",
table: "User",
type: "integer",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "KdfMemory",
table: "User",
type: "integer",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "KdfParallelism",
table: "User",
type: "integer",
nullable: true);
}
migrationBuilder.AddColumn<int>(
name: "KdfParallelism",
table: "User",
type: "integer",
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "KdfMemory",
table: "User");
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "KdfMemory",
table: "User");
migrationBuilder.DropColumn(
name: "KdfParallelism",
table: "User");
}
migrationBuilder.DropColumn(
name: "KdfParallelism",
table: "User");
}
}

47
util/SqliteMigrations/Migrations/20230124132220_KDFOptions.cs

@ -2,34 +2,33 @@ @@ -2,34 +2,33 @@
#nullable disable
namespace Bit.SqliteMigrations.Migrations
namespace Bit.SqliteMigrations.Migrations;
public partial class KDFOptions : Migration
{
public partial class KDFOptions : Migration
protected override void Up(MigrationBuilder migrationBuilder)
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "KdfMemory",
table: "User",
type: "INTEGER",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "KdfMemory",
table: "User",
type: "INTEGER",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "KdfParallelism",
table: "User",
type: "INTEGER",
nullable: true);
}
migrationBuilder.AddColumn<int>(
name: "KdfParallelism",
table: "User",
type: "INTEGER",
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "KdfMemory",
table: "User");
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "KdfMemory",
table: "User");
migrationBuilder.DropColumn(
name: "KdfParallelism",
table: "User");
}
migrationBuilder.DropColumn(
name: "KdfParallelism",
table: "User");
}
}

Loading…
Cancel
Save