using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace wtmProject.DataAccess.Migrations { public partial class hmr2025011502 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "ParentUnit", table: "WTM_CUSTOM", type: "nvarchar(500)", maxLength: 500, nullable: true, oldClrType: typeof(string), oldType: "nvarchar(50)", oldMaxLength: 50, oldNullable: true); migrationBuilder.AlterColumn( name: "CustomType", table: "WTM_CUSTOM", type: "int", nullable: true, oldClrType: typeof(int), oldType: "int"); migrationBuilder.AlterColumn( name: "CustomShortName", table: "WTM_CUSTOM", type: "nvarchar(500)", maxLength: 500, nullable: true, oldClrType: typeof(string), oldType: "nvarchar(50)", oldMaxLength: 50, oldNullable: true); migrationBuilder.AlterColumn( name: "CustomAllName", table: "WTM_CUSTOM", type: "nvarchar(500)", maxLength: 500, nullable: false, oldClrType: typeof(string), oldType: "nvarchar(50)", oldMaxLength: 50); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "ParentUnit", table: "WTM_CUSTOM", type: "nvarchar(50)", maxLength: 50, nullable: true, oldClrType: typeof(string), oldType: "nvarchar(500)", oldMaxLength: 500, oldNullable: true); migrationBuilder.AlterColumn( name: "CustomType", table: "WTM_CUSTOM", type: "int", nullable: false, defaultValue: 0, oldClrType: typeof(int), oldType: "int", oldNullable: true); migrationBuilder.AlterColumn( name: "CustomShortName", table: "WTM_CUSTOM", type: "nvarchar(50)", maxLength: 50, nullable: true, oldClrType: typeof(string), oldType: "nvarchar(500)", oldMaxLength: 500, oldNullable: true); migrationBuilder.AlterColumn( name: "CustomAllName", table: "WTM_CUSTOM", type: "nvarchar(50)", maxLength: 50, nullable: false, oldClrType: typeof(string), oldType: "nvarchar(500)", oldMaxLength: 500); } } }