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