using System; using Microsoft.EntityFrameworkCore.Migrations; namespace APT.Data.Migrations.Migrations { public partial class wyw2025110702 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "DEPARTMENT_ID", table: "T_SE_TRAIN_PLAN_DETAIL_DEPARTMENT", type: "uniqueidentifier", nullable: false, defaultValue: new Guid("00000000-0000-0000-0000-000000000000"), oldClrType: typeof(Guid), oldType: "uniqueidentifier", oldNullable: true); migrationBuilder.AlterColumn( name: "CLASSHOUR", table: "T_SE_TRAIN_PLAN_DETAIL", type: "decimal(18,2)", nullable: false, oldClrType: typeof(int), oldType: "int"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "DEPARTMENT_ID", table: "T_SE_TRAIN_PLAN_DETAIL_DEPARTMENT", type: "uniqueidentifier", nullable: true, oldClrType: typeof(Guid), oldType: "uniqueidentifier"); migrationBuilder.AlterColumn( name: "CLASSHOUR", table: "T_SE_TRAIN_PLAN_DETAIL", type: "int", nullable: false, oldClrType: typeof(decimal), oldType: "decimal(18,2)"); } } }