state after adding all of the user stuff and messing around with the wierd brave bug

This commit is contained in:
2026-03-08 14:45:38 -04:00
commit dde9ffcedb
4283 changed files with 124077 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace OpenArchival.DataAccess.Migrations
{
/// <inheritdoc />
public partial class FixedBlogPostFileCascade : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_ArtifactFilePaths_BlogPosts_ParentBlogPostId",
table: "ArtifactFilePaths");
migrationBuilder.AddForeignKey(
name: "FK_ArtifactFilePaths_BlogPosts_ParentBlogPostId",
table: "ArtifactFilePaths",
column: "ParentBlogPostId",
principalTable: "BlogPosts",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_ArtifactFilePaths_BlogPosts_ParentBlogPostId",
table: "ArtifactFilePaths");
migrationBuilder.AddForeignKey(
name: "FK_ArtifactFilePaths_BlogPosts_ParentBlogPostId",
table: "ArtifactFilePaths",
column: "ParentBlogPostId",
principalTable: "BlogPosts",
principalColumn: "Id");
}
}
}