API. Расписание для хоста в общем формате

This commit is contained in:
Mikhail Kuznetsov
2023-06-21 12:28:16 +10:00
parent 3ebc077b27
commit e55d8b8641
13 changed files with 199 additions and 761 deletions

View File

@@ -0,0 +1,60 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace PARR.DAL.Migrations
{
/// <inheritdoc />
public partial class DbV51 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_Jobs_JobTypes_JobTypeId",
table: "Jobs");
migrationBuilder.AlterColumn<Guid>(
name: "JobTypeId",
table: "Jobs",
type: "uuid",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uuid");
migrationBuilder.AddForeignKey(
name: "FK_Jobs_JobTypes_JobTypeId",
table: "Jobs",
column: "JobTypeId",
principalTable: "JobTypes",
principalColumn: "Id");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_Jobs_JobTypes_JobTypeId",
table: "Jobs");
migrationBuilder.AlterColumn<Guid>(
name: "JobTypeId",
table: "Jobs",
type: "uuid",
nullable: false,
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
oldClrType: typeof(Guid),
oldType: "uuid",
oldNullable: true);
migrationBuilder.AddForeignKey(
name: "FK_Jobs_JobTypes_JobTypeId",
table: "Jobs",
column: "JobTypeId",
principalTable: "JobTypes",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
}
}
}