using System;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
#nullable disable
|
|
namespace FlexJobApi.Database.Migrations.Migrations
|
{
|
/// <inheritdoc />
|
public partial class UpdateUser0812005 : Migration
|
{
|
/// <inheritdoc />
|
protected override void Up(MigrationBuilder migrationBuilder)
|
{
|
migrationBuilder.DropForeignKey(
|
name: "FK_TaskInfoUser_User_UserId",
|
table: "TaskInfoUser");
|
|
migrationBuilder.DropIndex(
|
name: "IX_TaskInfoUser_UserId",
|
table: "TaskInfoUser");
|
|
migrationBuilder.DropColumn(
|
name: "UserId",
|
table: "TaskInfoUser");
|
}
|
|
/// <inheritdoc />
|
protected override void Down(MigrationBuilder migrationBuilder)
|
{
|
migrationBuilder.AddColumn<Guid>(
|
name: "UserId",
|
table: "TaskInfoUser",
|
type: "uniqueidentifier",
|
nullable: true);
|
|
migrationBuilder.CreateIndex(
|
name: "IX_TaskInfoUser_UserId",
|
table: "TaskInfoUser",
|
column: "UserId");
|
|
migrationBuilder.AddForeignKey(
|
name: "FK_TaskInfoUser_User_UserId",
|
table: "TaskInfoUser",
|
column: "UserId",
|
principalTable: "User",
|
principalColumn: "Id");
|
}
|
}
|
}
|