49 lines
1.6 KiB
C#
49 lines
1.6 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace APT.Data.Migrations.Migrations
|
|
{
|
|
public partial class wyw2025110702 : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<Guid>(
|
|
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<decimal>(
|
|
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<Guid>(
|
|
name: "DEPARTMENT_ID",
|
|
table: "T_SE_TRAIN_PLAN_DETAIL_DEPARTMENT",
|
|
type: "uniqueidentifier",
|
|
nullable: true,
|
|
oldClrType: typeof(Guid),
|
|
oldType: "uniqueidentifier");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "CLASSHOUR",
|
|
table: "T_SE_TRAIN_PLAN_DETAIL",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)");
|
|
}
|
|
}
|
|
}
|