using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace DiunaBI.Infrastructure.Migrations { /// public partial class AfterCodeRefactor : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "Desc2", table: "Records"); migrationBuilder.DropColumn( name: "Desc3", table: "Records"); migrationBuilder.DropColumn( name: "Desc4", table: "Records"); migrationBuilder.DropColumn( name: "Desc5", table: "Records"); migrationBuilder.AlterColumn( name: "Email", table: "Users", type: "nvarchar(50)", maxLength: 50, nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AlterColumn( name: "Desc1", table: "Records", type: "nvarchar(1000)", maxLength: 1000, nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AlterColumn( name: "Code", table: "Records", type: "nvarchar(50)", maxLength: 50, nullable: false, oldClrType: typeof(string), oldType: "nvarchar(max)"); migrationBuilder.AlterColumn( name: "Name", table: "Layers", type: "nvarchar(50)", maxLength: 50, nullable: false, oldClrType: typeof(string), oldType: "nvarchar(max)"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Email", table: "Users", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(50)", oldMaxLength: 50, oldNullable: true); migrationBuilder.AlterColumn( name: "Desc1", table: "Records", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(1000)", oldMaxLength: 1000, oldNullable: true); migrationBuilder.AlterColumn( name: "Code", table: "Records", type: "nvarchar(max)", nullable: false, oldClrType: typeof(string), oldType: "nvarchar(50)", oldMaxLength: 50); migrationBuilder.AddColumn( name: "Desc2", table: "Records", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "Desc3", table: "Records", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "Desc4", table: "Records", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "Desc5", table: "Records", type: "nvarchar(max)", nullable: true); migrationBuilder.AlterColumn( name: "Name", table: "Layers", type: "nvarchar(max)", nullable: false, oldClrType: typeof(string), oldType: "nvarchar(50)", oldMaxLength: 50); } } }