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