Publication site global config data structure

This commit is contained in:
2025-12-10 19:33:00 +08:00
parent 43945fc524
commit a071bd2738
6 changed files with 218 additions and 34 deletions

View File

@@ -0,0 +1,30 @@
using DysonNetwork.Shared.Models;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace DysonNetwork.Zone.Migrations
{
/// <inheritdoc />
public partial class AddSiteGlobalConfig : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<PublicationSiteConfig>(
name: "config",
table: "publication_sites",
type: "jsonb",
nullable: false,
defaultValue: new PublicationSiteConfig());
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "config",
table: "publication_sites");
}
}
}