Reply and forward gone indicator

This commit is contained in:
2025-08-20 02:14:18 +08:00
parent 2e52a13c30
commit ec44b51ab6
5 changed files with 2027 additions and 2 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,40 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace DysonNetwork.Sphere.Migrations
{
/// <inheritdoc />
public partial class AddPostParentGone : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "forwarded_gone",
table: "posts",
type: "boolean",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<bool>(
name: "replied_gone",
table: "posts",
type: "boolean",
nullable: false,
defaultValue: false);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "forwarded_gone",
table: "posts");
migrationBuilder.DropColumn(
name: "replied_gone",
table: "posts");
}
}
}

View File

@@ -554,6 +554,10 @@ namespace DysonNetwork.Sphere.Migrations
.HasColumnType("timestamp with time zone")
.HasColumnName("edited_at");
b.Property<bool>("ForwardedGone")
.HasColumnType("boolean")
.HasColumnName("forwarded_gone");
b.Property<Guid?>("ForwardedPostId")
.HasColumnType("uuid")
.HasColumnName("forwarded_post_id");
@@ -574,6 +578,10 @@ namespace DysonNetwork.Sphere.Migrations
.HasColumnType("uuid")
.HasColumnName("realm_id");
b.Property<bool>("RepliedGone")
.HasColumnType("boolean")
.HasColumnName("replied_gone");
b.Property<Guid?>("RepliedPostId")
.HasColumnType("uuid")
.HasColumnName("replied_post_id");