using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace IRaCIS.Core.Infra.EFCore.Migrations
{
///
public partial class DicomAEAddField : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn(
name: "PatientId",
table: "DicomStudy",
type: "nvarchar(400)",
maxLength: 400,
nullable: false,
comment: "废弃了,用PatientIdStr",
oldClrType: typeof(string),
oldType: "nvarchar(400)",
oldMaxLength: 400);
migrationBuilder.AddColumn(
name: "PacsTypeEnum",
table: "DicomAE",
type: "int",
nullable: false,
defaultValue: 0);
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "PacsTypeEnum",
table: "DicomAE");
migrationBuilder.AlterColumn(
name: "PatientId",
table: "DicomStudy",
type: "nvarchar(400)",
maxLength: 400,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(400)",
oldMaxLength: 400,
oldComment: "废弃了,用PatientIdStr");
}
}
}