64 lines
1.9 KiB
C#
64 lines
1.9 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class sharemodify : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "StudyId",
|
|
table: "ImageShare");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SubjectId",
|
|
table: "ImageShare");
|
|
|
|
migrationBuilder.RenameColumn(
|
|
name: "TrialId",
|
|
table: "ImageShare",
|
|
newName: "VisitTaskId");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "RouteUrl",
|
|
table: "ImageShare",
|
|
type: "nvarchar(400)",
|
|
maxLength: 400,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "RouteUrl",
|
|
table: "ImageShare");
|
|
|
|
migrationBuilder.RenameColumn(
|
|
name: "VisitTaskId",
|
|
table: "ImageShare",
|
|
newName: "TrialId");
|
|
|
|
migrationBuilder.AddColumn<Guid>(
|
|
name: "StudyId",
|
|
table: "ImageShare",
|
|
type: "uniqueidentifier",
|
|
nullable: false,
|
|
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));
|
|
|
|
migrationBuilder.AddColumn<Guid>(
|
|
name: "SubjectId",
|
|
table: "ImageShare",
|
|
type: "uniqueidentifier",
|
|
nullable: false,
|
|
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));
|
|
}
|
|
}
|
|
}
|