♻️ Move the keys store out of the publisher meta
This commit is contained in:
2693
DysonNetwork.Sphere/Migrations/20251229174336_AddPublisherKeys.Designer.cs
generated
Normal file
2693
DysonNetwork.Sphere/Migrations/20251229174336_AddPublisherKeys.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,40 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DysonNetwork.Sphere.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddPublisherKeys : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "private_key_pem",
|
||||
table: "publishers",
|
||||
type: "character varying(8192)",
|
||||
maxLength: 8192,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "public_key_pem",
|
||||
table: "publishers",
|
||||
type: "character varying(8192)",
|
||||
maxLength: 8192,
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "private_key_pem",
|
||||
table: "publishers");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "public_key_pem",
|
||||
table: "publishers");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1544,6 +1544,16 @@ namespace DysonNetwork.Sphere.Migrations
|
||||
.HasColumnType("jsonb")
|
||||
.HasColumnName("picture");
|
||||
|
||||
b.Property<string>("PrivateKeyPem")
|
||||
.HasMaxLength(8192)
|
||||
.HasColumnType("character varying(8192)")
|
||||
.HasColumnName("private_key_pem");
|
||||
|
||||
b.Property<string>("PublicKeyPem")
|
||||
.HasMaxLength(8192)
|
||||
.HasColumnType("character varying(8192)")
|
||||
.HasColumnName("public_key_pem");
|
||||
|
||||
b.Property<Guid?>("RealmId")
|
||||
.HasColumnType("uuid")
|
||||
.HasColumnName("realm_id");
|
||||
|
||||
Reference in New Issue
Block a user