irc-netcore-api/IRaCIS.Core.Infra.EFCore/Migrations/20241212081432_DicomAEAddFi...

52 lines
1.5 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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");
}
}
}