This commit is contained in:
David Štaleker
2025-07-18 05:33:16 +02:00
parent 401a367e5d
commit db0cc8d3de
14776 changed files with 9251484 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace EveryThing.Migrations
{
public partial class _4 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_InvoiceItems_ProjectPartItems_IdProjectPartItem",
table: "InvoiceItems");
migrationBuilder.AlterColumn<int>(
name: "IdProjectPartItem",
table: "InvoiceItems",
type: "int",
nullable: true,
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AddForeignKey(
name: "FK_InvoiceItems_ProjectPartItems_IdProjectPartItem",
table: "InvoiceItems",
column: "IdProjectPartItem",
principalTable: "ProjectPartItems",
principalColumn: "IdProjectPartItem");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_InvoiceItems_ProjectPartItems_IdProjectPartItem",
table: "InvoiceItems");
migrationBuilder.AlterColumn<int>(
name: "IdProjectPartItem",
table: "InvoiceItems",
type: "int",
nullable: false,
defaultValue: 0,
oldClrType: typeof(int),
oldType: "int",
oldNullable: true);
migrationBuilder.AddForeignKey(
name: "FK_InvoiceItems_ProjectPartItems_IdProjectPartItem",
table: "InvoiceItems",
column: "IdProjectPartItem",
principalTable: "ProjectPartItems",
principalColumn: "IdProjectPartItem",
onDelete: ReferentialAction.Cascade);
}
}
}