91 lines
2.8 KiB
C#
91 lines
2.8 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class DicomStudy0420 : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "RadionuclideHalfLife",
|
|
table: "SCPStudy",
|
|
type: "nvarchar(400)",
|
|
maxLength: 400,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "RadionuclideTotalDose",
|
|
table: "SCPStudy",
|
|
type: "nvarchar(400)",
|
|
maxLength: 400,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "RadiopharmaceuticalStartTime",
|
|
table: "SCPStudy",
|
|
type: "nvarchar(400)",
|
|
maxLength: 400,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "RadionuclideHalfLife",
|
|
table: "DicomStudy",
|
|
type: "nvarchar(400)",
|
|
maxLength: 400,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "RadionuclideTotalDose",
|
|
table: "DicomStudy",
|
|
type: "nvarchar(400)",
|
|
maxLength: 400,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "RadiopharmaceuticalStartTime",
|
|
table: "DicomStudy",
|
|
type: "nvarchar(400)",
|
|
maxLength: 400,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "RadionuclideHalfLife",
|
|
table: "SCPStudy");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "RadionuclideTotalDose",
|
|
table: "SCPStudy");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "RadiopharmaceuticalStartTime",
|
|
table: "SCPStudy");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "RadionuclideHalfLife",
|
|
table: "DicomStudy");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "RadionuclideTotalDose",
|
|
table: "DicomStudy");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "RadiopharmaceuticalStartTime",
|
|
table: "DicomStudy");
|
|
}
|
|
}
|
|
}
|