♻️ Update handling logic of activitypub
This commit is contained in:
2373
DysonNetwork.Sphere/Migrations/20251231143021_RemoveSeprateLikeCountOnPost.Designer.cs
generated
Normal file
2373
DysonNetwork.Sphere/Migrations/20251231143021_RemoveSeprateLikeCountOnPost.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,29 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DysonNetwork.Sphere.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class RemoveSeprateLikeCountOnPost : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "like_count",
|
||||
table: "posts");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "like_count",
|
||||
table: "posts",
|
||||
type: "integer",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -840,10 +840,6 @@ namespace DysonNetwork.Sphere.Migrations
|
||||
.HasColumnType("character varying(2048)")
|
||||
.HasColumnName("language");
|
||||
|
||||
b.Property<int>("LikeCount")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("like_count");
|
||||
|
||||
b.Property<List<ContentMention>>("Mentions")
|
||||
.HasColumnType("jsonb")
|
||||
.HasColumnName("mentions");
|
||||
|
||||
Reference in New Issue
Block a user