using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace CouchLog.Migrations
{
///
public partial class RemoveUserFromStatus : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_UserWatchStatuses_AspNetUsers_ApplicationUserId",
table: "UserWatchStatuses");
migrationBuilder.DropIndex(
name: "IX_UserWatchStatuses_ApplicationUserId",
table: "UserWatchStatuses");
migrationBuilder.DropColumn(
name: "ApplicationUserId",
table: "UserWatchStatuses");
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn(
name: "ApplicationUserId",
table: "UserWatchStatuses",
type: "TEXT",
nullable: true);
migrationBuilder.CreateIndex(
name: "IX_UserWatchStatuses_ApplicationUserId",
table: "UserWatchStatuses",
column: "ApplicationUserId");
migrationBuilder.AddForeignKey(
name: "FK_UserWatchStatuses_AspNetUsers_ApplicationUserId",
table: "UserWatchStatuses",
column: "ApplicationUserId",
principalTable: "AspNetUsers",
principalColumn: "Id");
}
}
}