WIP: copy process
This commit is contained in:
45
WebAPI/Migrations/20230918090621_ProcessSource.cs
Normal file
45
WebAPI/Migrations/20230918090621_ProcessSource.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace WebAPI.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class ProcessSource : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "ProcessSources",
|
||||
columns: table => new
|
||||
{
|
||||
LayerId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
SourceId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_ProcessSources", x => new { x.LayerId, x.SourceId });
|
||||
table.ForeignKey(
|
||||
name: "FK_ProcessSources_Layers_SourceId",
|
||||
column: x => x.SourceId,
|
||||
principalTable: "Layers",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_ProcessSources_SourceId",
|
||||
table: "ProcessSources",
|
||||
column: "SourceId");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "ProcessSources");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user