98 lines
3.2 KiB
C#
98 lines
3.2 KiB
C#
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|
|||
|
|
#nullable disable
|
|||
|
|
|
|||
|
|
namespace wtmProject.DataAccess.Migrations
|
|||
|
|
{
|
|||
|
|
public partial class hmr2025011502 : Migration
|
|||
|
|
{
|
|||
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
|
{
|
|||
|
|
migrationBuilder.AlterColumn<string>(
|
|||
|
|
name: "ParentUnit",
|
|||
|
|
table: "WTM_CUSTOM",
|
|||
|
|
type: "nvarchar(500)",
|
|||
|
|
maxLength: 500,
|
|||
|
|
nullable: true,
|
|||
|
|
oldClrType: typeof(string),
|
|||
|
|
oldType: "nvarchar(50)",
|
|||
|
|
oldMaxLength: 50,
|
|||
|
|
oldNullable: true);
|
|||
|
|
|
|||
|
|
migrationBuilder.AlterColumn<int>(
|
|||
|
|
name: "CustomType",
|
|||
|
|
table: "WTM_CUSTOM",
|
|||
|
|
type: "int",
|
|||
|
|
nullable: true,
|
|||
|
|
oldClrType: typeof(int),
|
|||
|
|
oldType: "int");
|
|||
|
|
|
|||
|
|
migrationBuilder.AlterColumn<string>(
|
|||
|
|
name: "CustomShortName",
|
|||
|
|
table: "WTM_CUSTOM",
|
|||
|
|
type: "nvarchar(500)",
|
|||
|
|
maxLength: 500,
|
|||
|
|
nullable: true,
|
|||
|
|
oldClrType: typeof(string),
|
|||
|
|
oldType: "nvarchar(50)",
|
|||
|
|
oldMaxLength: 50,
|
|||
|
|
oldNullable: true);
|
|||
|
|
|
|||
|
|
migrationBuilder.AlterColumn<string>(
|
|||
|
|
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<string>(
|
|||
|
|
name: "ParentUnit",
|
|||
|
|
table: "WTM_CUSTOM",
|
|||
|
|
type: "nvarchar(50)",
|
|||
|
|
maxLength: 50,
|
|||
|
|
nullable: true,
|
|||
|
|
oldClrType: typeof(string),
|
|||
|
|
oldType: "nvarchar(500)",
|
|||
|
|
oldMaxLength: 500,
|
|||
|
|
oldNullable: true);
|
|||
|
|
|
|||
|
|
migrationBuilder.AlterColumn<int>(
|
|||
|
|
name: "CustomType",
|
|||
|
|
table: "WTM_CUSTOM",
|
|||
|
|
type: "int",
|
|||
|
|
nullable: false,
|
|||
|
|
defaultValue: 0,
|
|||
|
|
oldClrType: typeof(int),
|
|||
|
|
oldType: "int",
|
|||
|
|
oldNullable: true);
|
|||
|
|
|
|||
|
|
migrationBuilder.AlterColumn<string>(
|
|||
|
|
name: "CustomShortName",
|
|||
|
|
table: "WTM_CUSTOM",
|
|||
|
|
type: "nvarchar(50)",
|
|||
|
|
maxLength: 50,
|
|||
|
|
nullable: true,
|
|||
|
|
oldClrType: typeof(string),
|
|||
|
|
oldType: "nvarchar(500)",
|
|||
|
|
oldMaxLength: 500,
|
|||
|
|
oldNullable: true);
|
|||
|
|
|
|||
|
|
migrationBuilder.AlterColumn<string>(
|
|||
|
|
name: "CustomAllName",
|
|||
|
|
table: "WTM_CUSTOM",
|
|||
|
|
type: "nvarchar(50)",
|
|||
|
|
maxLength: 50,
|
|||
|
|
nullable: false,
|
|||
|
|
oldClrType: typeof(string),
|
|||
|
|
oldType: "nvarchar(500)",
|
|||
|
|
oldMaxLength: 500);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|