feat: seo optimizations + opengraph embeds

fix: nullable AuthorUUIDs; assign admins member & mod role
This commit is contained in:
2026-01-06 16:26:47 -05:00
parent a7185d6a3d
commit 3bbd64631a
13 changed files with 288 additions and 14 deletions
@@ -0,0 +1,37 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace SharpbinV3.Server.Migrations
{
/// <inheritdoc />
public partial class NullableAuthorUUID : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<Guid>(
name: "AuthorUUID",
table: "Pastes",
type: "TEXT",
nullable: true,
oldClrType: typeof(Guid),
oldType: "TEXT");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<Guid>(
name: "AuthorUUID",
table: "Pastes",
type: "TEXT",
nullable: false,
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
oldClrType: typeof(Guid),
oldType: "TEXT",
oldNullable: true);
}
}
}