✨ Pinned post
This commit is contained in:
2006
DysonNetwork.Sphere/Migrations/20250825045548_AddPostPin.Designer.cs
generated
Normal file
2006
DysonNetwork.Sphere/Migrations/20250825045548_AddPostPin.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
28
DysonNetwork.Sphere/Migrations/20250825045548_AddPostPin.cs
Normal file
28
DysonNetwork.Sphere/Migrations/20250825045548_AddPostPin.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DysonNetwork.Sphere.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddPostPin : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "pin_mode",
|
||||
table: "posts",
|
||||
type: "integer",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "pin_mode",
|
||||
table: "posts");
|
||||
}
|
||||
}
|
||||
}
|
@@ -566,6 +566,10 @@ namespace DysonNetwork.Sphere.Migrations
|
||||
.HasColumnType("jsonb")
|
||||
.HasColumnName("meta");
|
||||
|
||||
b.Property<int?>("PinMode")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("pin_mode");
|
||||
|
||||
b.Property<Instant?>("PublishedAt")
|
||||
.HasColumnType("timestamp with time zone")
|
||||
.HasColumnName("published_at");
|
||||
|
Reference in New Issue
Block a user