Files
Sharpbin/SharpbinV3.Server/Migrations/20260106211303_NullableAuthorUUID.cs
T
2026-01-09 15:24:19 -05:00

37 lines
1.0 KiB
C#

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);
}
}
}