30 lines
771 B
C#
30 lines
771 B
C#
using DysonNetwork.Sphere.Post;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace DysonNetwork.Sphere.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddPostEmbedView : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<PostEmbedView>(
|
|
name: "embed_view",
|
|
table: "posts",
|
|
type: "jsonb",
|
|
nullable: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "embed_view",
|
|
table: "posts");
|
|
}
|
|
}
|
|
}
|