using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace IRaCIS.Core.Infra.EFCore.Migrations { /// public partial class clidata : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "VisitTaskNum", table: "VisitTask", type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, comment: "随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.02 全局任务在截止访视号上+0.03 肿瘤0.06", oldClrType: typeof(decimal), oldType: "decimal(18,2)", oldPrecision: 18, oldScale: 2, oldComment: "随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.002 全局任务在截止访视号上+0.03 肿瘤待定"); migrationBuilder.AlterColumn( name: "UserId", table: "TrialUser", type: "uniqueidentifier", nullable: false, comment: "这里实际是UserRoleId", oldClrType: typeof(Guid), oldType: "uniqueidentifier"); migrationBuilder.AddColumn( name: "EnFileName", table: "ClinicalDataTrialSet", type: "nvarchar(400)", maxLength: 400, nullable: false, defaultValue: ""); migrationBuilder.AddColumn( name: "EnPath", table: "ClinicalDataTrialSet", type: "nvarchar(400)", maxLength: 400, nullable: false, defaultValue: ""); migrationBuilder.AddColumn( name: "EnFileName", table: "ClinicalDataSystemSet", type: "nvarchar(400)", maxLength: 400, nullable: false, defaultValue: ""); migrationBuilder.AddColumn( name: "EnPath", table: "ClinicalDataSystemSet", type: "nvarchar(400)", maxLength: 400, nullable: false, defaultValue: ""); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "EnFileName", table: "ClinicalDataTrialSet"); migrationBuilder.DropColumn( name: "EnPath", table: "ClinicalDataTrialSet"); migrationBuilder.DropColumn( name: "EnFileName", table: "ClinicalDataSystemSet"); migrationBuilder.DropColumn( name: "EnPath", table: "ClinicalDataSystemSet"); migrationBuilder.AlterColumn( name: "VisitTaskNum", table: "VisitTask", type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, comment: "随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.002 全局任务在截止访视号上+0.03 肿瘤待定", oldClrType: typeof(decimal), oldType: "decimal(18,2)", oldPrecision: 18, oldScale: 2, oldComment: "随访任务号 取访视的号 计划外是 访视+0.1 裁判任务在访视任务上+0.02 全局任务在截止访视号上+0.03 肿瘤0.06"); migrationBuilder.AlterColumn( name: "UserId", table: "TrialUser", type: "uniqueidentifier", nullable: false, oldClrType: typeof(Guid), oldType: "uniqueidentifier", oldComment: "这里实际是UserRoleId"); } } }