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

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");
}
}
}