62 lines
1.7 KiB
C#
62 lines
1.7 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddInstanceIsReading : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<Guid>(
|
|
name: "DeleteUserId",
|
|
table: "DicomInstance",
|
|
type: "uniqueidentifier",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<DateTime>(
|
|
name: "DeletedTime",
|
|
table: "DicomInstance",
|
|
type: "datetime2",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "IsDeleted",
|
|
table: "DicomInstance",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "IsReading",
|
|
table: "DicomInstance",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "DeleteUserId",
|
|
table: "DicomInstance");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "DeletedTime",
|
|
table: "DicomInstance");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "IsDeleted",
|
|
table: "DicomInstance");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "IsReading",
|
|
table: "DicomInstance");
|
|
}
|
|
}
|
|
}
|