51 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
		
		
			
		
	
	
			51 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| 
								 | 
							
								using System;
							 | 
						|||
| 
								 | 
							
								using Microsoft.EntityFrameworkCore.Migrations;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								namespace APT.Data.Migrations.Migrations
							 | 
						|||
| 
								 | 
							
								{
							 | 
						|||
| 
								 | 
							
								    public partial class wjn2024052701 : Migration
							 | 
						|||
| 
								 | 
							
								    {
							 | 
						|||
| 
								 | 
							
								        protected override void Up(MigrationBuilder migrationBuilder)
							 | 
						|||
| 
								 | 
							
								        {
							 | 
						|||
| 
								 | 
							
								            migrationBuilder.AlterColumn<Guid>(
							 | 
						|||
| 
								 | 
							
								                name: "DEPARTMENT_ID",
							 | 
						|||
| 
								 | 
							
								                table: "T_FM_DEPARTMENT_SCHEDULING",
							 | 
						|||
| 
								 | 
							
								                type: "uniqueidentifier",
							 | 
						|||
| 
								 | 
							
								                nullable: true,
							 | 
						|||
| 
								 | 
							
								                oldClrType: typeof(Guid),
							 | 
						|||
| 
								 | 
							
								                oldType: "uniqueidentifier");
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								            migrationBuilder.AlterColumn<Guid>(
							 | 
						|||
| 
								 | 
							
								                name: "CLASS_ID",
							 | 
						|||
| 
								 | 
							
								                table: "T_FM_DEPARTMENT_SCHEDULING",
							 | 
						|||
| 
								 | 
							
								                type: "uniqueidentifier",
							 | 
						|||
| 
								 | 
							
								                nullable: true,
							 | 
						|||
| 
								 | 
							
								                oldClrType: typeof(Guid),
							 | 
						|||
| 
								 | 
							
								                oldType: "uniqueidentifier");
							 | 
						|||
| 
								 | 
							
								        }
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								        protected override void Down(MigrationBuilder migrationBuilder)
							 | 
						|||
| 
								 | 
							
								        {
							 | 
						|||
| 
								 | 
							
								            migrationBuilder.AlterColumn<Guid>(
							 | 
						|||
| 
								 | 
							
								                name: "DEPARTMENT_ID",
							 | 
						|||
| 
								 | 
							
								                table: "T_FM_DEPARTMENT_SCHEDULING",
							 | 
						|||
| 
								 | 
							
								                type: "uniqueidentifier",
							 | 
						|||
| 
								 | 
							
								                nullable: false,
							 | 
						|||
| 
								 | 
							
								                defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
							 | 
						|||
| 
								 | 
							
								                oldClrType: typeof(Guid),
							 | 
						|||
| 
								 | 
							
								                oldType: "uniqueidentifier",
							 | 
						|||
| 
								 | 
							
								                oldNullable: true);
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								            migrationBuilder.AlterColumn<Guid>(
							 | 
						|||
| 
								 | 
							
								                name: "CLASS_ID",
							 | 
						|||
| 
								 | 
							
								                table: "T_FM_DEPARTMENT_SCHEDULING",
							 | 
						|||
| 
								 | 
							
								                type: "uniqueidentifier",
							 | 
						|||
| 
								 | 
							
								                nullable: false,
							 | 
						|||
| 
								 | 
							
								                defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
							 | 
						|||
| 
								 | 
							
								                oldClrType: typeof(Guid),
							 | 
						|||
| 
								 | 
							
								                oldType: "uniqueidentifier",
							 | 
						|||
| 
								 | 
							
								                oldNullable: true);
							 | 
						|||
| 
								 | 
							
								        }
							 | 
						|||
| 
								 | 
							
								    }
							 | 
						|||
| 
								 | 
							
								}
							 |