using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Rmsys.Infrastructure.Migrations { /// public partial class CadreIdCardLength : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "IdCard", table: "cadres", type: "varchar(18)", maxLength: 18, nullable: true, oldClrType: typeof(string), oldType: "longtext", oldNullable: true) .Annotation("MySql:CharSet", "utf8mb4") .OldAnnotation("MySql:CharSet", "utf8mb4"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "IdCard", table: "cadres", type: "longtext", nullable: true, oldClrType: typeof(string), oldType: "varchar(18)", oldMaxLength: 18, oldNullable: true) .Annotation("MySql:CharSet", "utf8mb4") .OldAnnotation("MySql:CharSet", "utf8mb4"); } } }