♻️ Better local actor
This commit is contained in:
2683
DysonNetwork.Sphere/Migrations/20251229163103_BetterLocalActor.Designer.cs
generated
Normal file
2683
DysonNetwork.Sphere/Migrations/20251229163103_BetterLocalActor.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,60 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DysonNetwork.Sphere.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class BetterLocalActor : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "is_local_actor",
|
||||
table: "fediverse_relationships");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "local_account_id",
|
||||
table: "fediverse_relationships");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "local_publisher_id",
|
||||
table: "fediverse_relationships");
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "publisher_id",
|
||||
table: "fediverse_actors",
|
||||
type: "uuid",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "publisher_id",
|
||||
table: "fediverse_actors");
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "is_local_actor",
|
||||
table: "fediverse_relationships",
|
||||
type: "boolean",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "local_account_id",
|
||||
table: "fediverse_relationships",
|
||||
type: "uuid",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "local_publisher_id",
|
||||
table: "fediverse_relationships",
|
||||
type: "uuid",
|
||||
nullable: true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -495,6 +495,10 @@ namespace DysonNetwork.Sphere.Migrations
|
||||
.HasColumnType("character varying(2048)")
|
||||
.HasColumnName("public_key_id");
|
||||
|
||||
b.Property<Guid?>("PublisherId")
|
||||
.HasColumnType("uuid")
|
||||
.HasColumnName("publisher_id");
|
||||
|
||||
b.Property<string>("Type")
|
||||
.IsRequired()
|
||||
.HasMaxLength(2048)
|
||||
@@ -877,22 +881,10 @@ namespace DysonNetwork.Sphere.Migrations
|
||||
.HasColumnType("boolean")
|
||||
.HasColumnName("is_following");
|
||||
|
||||
b.Property<bool>("IsLocalActor")
|
||||
.HasColumnType("boolean")
|
||||
.HasColumnName("is_local_actor");
|
||||
|
||||
b.Property<bool>("IsMuting")
|
||||
.HasColumnType("boolean")
|
||||
.HasColumnName("is_muting");
|
||||
|
||||
b.Property<Guid?>("LocalAccountId")
|
||||
.HasColumnType("uuid")
|
||||
.HasColumnName("local_account_id");
|
||||
|
||||
b.Property<Guid?>("LocalPublisherId")
|
||||
.HasColumnType("uuid")
|
||||
.HasColumnName("local_publisher_id");
|
||||
|
||||
b.Property<string>("RejectReason")
|
||||
.HasMaxLength(4096)
|
||||
.HasColumnType("character varying(4096)")
|
||||
|
||||
Reference in New Issue
Block a user