using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace MTWorkHR.Infrastructure.Migrations
{
///
public partial class altrTaskHistory3 : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn(
name: "AssignedToUserId",
table: "UserTaskHistories",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(long),
oldType: "bigint");
migrationBuilder.AddColumn(
name: "Content",
table: "UserTaskAttachments",
type: "varbinary(max)",
nullable: false,
defaultValue: new byte[0]);
migrationBuilder.AddColumn(
name: "ContentType",
table: "UserTaskAttachments",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn(
name: "FilePath",
table: "UserTaskAttachments",
type: "nvarchar(max)",
nullable: true);
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Content",
table: "UserTaskAttachments");
migrationBuilder.DropColumn(
name: "ContentType",
table: "UserTaskAttachments");
migrationBuilder.DropColumn(
name: "FilePath",
table: "UserTaskAttachments");
migrationBuilder.AlterColumn(
name: "AssignedToUserId",
table: "UserTaskHistories",
type: "bigint",
nullable: false,
defaultValue: 0L,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
}
}
}