Browse Source

Add EncryptedKey Migration (EF)

add-encrypted-key-column
Justin Baur 3 years ago
parent
commit
253e272601
No known key found for this signature in database
GPG Key ID: 7159AE8CA3CCD0C8
  1. 2193
      util/MySqlMigrations/Migrations/20230501144946_AddEncryptedKeyToDevice.Designer.cs
  2. 25
      util/MySqlMigrations/Migrations/20230501144946_AddEncryptedKeyToDevice.cs
  3. 3
      util/MySqlMigrations/Migrations/DatabaseContextModelSnapshot.cs
  4. 2204
      util/PostgresMigrations/Migrations/20230501144935_AddEncryptedKeyToDevice.Designer.cs
  5. 24
      util/PostgresMigrations/Migrations/20230501144935_AddEncryptedKeyToDevice.cs
  6. 3
      util/PostgresMigrations/Migrations/DatabaseContextModelSnapshot.cs
  7. 2191
      util/SqliteMigrations/Migrations/20230501144940_AddEncryptedKeyToDevice.Designer.cs
  8. 24
      util/SqliteMigrations/Migrations/20230501144940_AddEncryptedKeyToDevice.cs
  9. 3
      util/SqliteMigrations/Migrations/DatabaseContextModelSnapshot.cs

2193
util/MySqlMigrations/Migrations/20230501144946_AddEncryptedKeyToDevice.Designer.cs generated

File diff suppressed because it is too large Load Diff

25
util/MySqlMigrations/Migrations/20230501144946_AddEncryptedKeyToDevice.cs

@ -0,0 +1,25 @@ @@ -0,0 +1,25 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Bit.MySqlMigrations.Migrations;
public partial class AddEncryptedKeyToDevice : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "EncryptedKey",
table: "Device",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "EncryptedKey",
table: "Device");
}
}

3
util/MySqlMigrations/Migrations/DatabaseContextModelSnapshot.cs

@ -319,6 +319,9 @@ namespace Bit.MySqlMigrations.Migrations @@ -319,6 +319,9 @@ namespace Bit.MySqlMigrations.Migrations
b.Property<DateTime>("CreationDate")
.HasColumnType("datetime(6)");
b.Property<string>("EncryptedKey")
.HasColumnType("longtext");
b.Property<string>("Identifier")
.HasMaxLength(50)
.HasColumnType("varchar(50)");

2204
util/PostgresMigrations/Migrations/20230501144935_AddEncryptedKeyToDevice.Designer.cs generated

File diff suppressed because it is too large Load Diff

24
util/PostgresMigrations/Migrations/20230501144935_AddEncryptedKeyToDevice.cs

@ -0,0 +1,24 @@ @@ -0,0 +1,24 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Bit.PostgresMigrations.Migrations;
public partial class AddEncryptedKeyToDevice : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "EncryptedKey",
table: "Device",
type: "text",
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "EncryptedKey",
table: "Device");
}
}

3
util/PostgresMigrations/Migrations/DatabaseContextModelSnapshot.cs

@ -328,6 +328,9 @@ namespace Bit.PostgresMigrations.Migrations @@ -328,6 +328,9 @@ namespace Bit.PostgresMigrations.Migrations
b.Property<DateTime>("CreationDate")
.HasColumnType("timestamp with time zone");
b.Property<string>("EncryptedKey")
.HasColumnType("text");
b.Property<string>("Identifier")
.HasMaxLength(50)
.HasColumnType("character varying(50)");

2191
util/SqliteMigrations/Migrations/20230501144940_AddEncryptedKeyToDevice.Designer.cs generated

File diff suppressed because it is too large Load Diff

24
util/SqliteMigrations/Migrations/20230501144940_AddEncryptedKeyToDevice.cs

@ -0,0 +1,24 @@ @@ -0,0 +1,24 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Bit.SqliteMigrations.Migrations;
public partial class AddEncryptedKeyToDevice : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "EncryptedKey",
table: "Device",
type: "TEXT",
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "EncryptedKey",
table: "Device");
}
}

3
util/SqliteMigrations/Migrations/DatabaseContextModelSnapshot.cs

@ -317,6 +317,9 @@ namespace Bit.SqliteMigrations.Migrations @@ -317,6 +317,9 @@ namespace Bit.SqliteMigrations.Migrations
b.Property<DateTime>("CreationDate")
.HasColumnType("TEXT");
b.Property<string>("EncryptedKey")
.HasColumnType("TEXT");
b.Property<string>("Identifier")
.HasMaxLength(50)
.HasColumnType("TEXT");

Loading…
Cancel
Save