115 lines
3.5 KiB
C#
115 lines
3.5 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class dir : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "DicomStudyDate",
|
|
table: "DicomStudy",
|
|
type: "nvarchar(400)",
|
|
maxLength: 400,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "DicomStudyTime",
|
|
table: "DicomStudy",
|
|
type: "nvarchar(400)",
|
|
maxLength: 400,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "DicomSeriesDate",
|
|
table: "DicomSeries",
|
|
type: "nvarchar(400)",
|
|
maxLength: 400,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "DicomSeriesTime",
|
|
table: "DicomSeries",
|
|
type: "nvarchar(400)",
|
|
maxLength: 400,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "MediaStorageSOPClassUID",
|
|
table: "DicomInstance",
|
|
type: "nvarchar(400)",
|
|
maxLength: 400,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "MediaStorageSOPInstanceUID",
|
|
table: "DicomInstance",
|
|
type: "nvarchar(400)",
|
|
maxLength: 400,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SOPClassUID",
|
|
table: "DicomInstance",
|
|
type: "nvarchar(400)",
|
|
maxLength: 400,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "TransferSytaxUID",
|
|
table: "DicomInstance",
|
|
type: "nvarchar(400)",
|
|
maxLength: 400,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "DicomStudyDate",
|
|
table: "DicomStudy");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "DicomStudyTime",
|
|
table: "DicomStudy");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "DicomSeriesDate",
|
|
table: "DicomSeries");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "DicomSeriesTime",
|
|
table: "DicomSeries");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "MediaStorageSOPClassUID",
|
|
table: "DicomInstance");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "MediaStorageSOPInstanceUID",
|
|
table: "DicomInstance");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SOPClassUID",
|
|
table: "DicomInstance");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "TransferSytaxUID",
|
|
table: "DicomInstance");
|
|
}
|
|
}
|
|
}
|