Add MCDO (#31)
* rudimentary charadata first impl * update submodule * update properly * some fixes etc * add cascade and some other fixes * most of charadata impl * dotnet 9 * net9 and migration to k4os * bum papi --------- Co-authored-by: Stanley Dimant <root.darkarchon@outlook.com>
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace MareSynchronosServer.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class CascadeFile : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "fk_chara_data_files_files_file_cache_hash",
|
||||
table: "chara_data_files");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "fk_chara_data_files_files_file_cache_hash",
|
||||
table: "chara_data_files",
|
||||
column: "file_cache_hash",
|
||||
principalTable: "file_caches",
|
||||
principalColumn: "hash",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "fk_chara_data_files_files_file_cache_hash",
|
||||
table: "chara_data_files");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "fk_chara_data_files_files_file_cache_hash",
|
||||
table: "chara_data_files",
|
||||
column: "file_cache_hash",
|
||||
principalTable: "file_caches",
|
||||
principalColumn: "hash");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user