using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace SPMS.Infrastructure.Migrations { /// public partial class ExpandAdminCodeLength : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "AdminCode", table: "Admin", type: "varchar(12)", maxLength: 12, nullable: false, oldClrType: typeof(string), oldType: "varchar(8)", oldMaxLength: 8) .Annotation("MySql:CharSet", "utf8mb4") .OldAnnotation("MySql:CharSet", "utf8mb4"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "AdminCode", table: "Admin", type: "varchar(8)", maxLength: 8, nullable: false, oldClrType: typeof(string), oldType: "varchar(12)", oldMaxLength: 12) .Annotation("MySql:CharSet", "utf8mb4") .OldAnnotation("MySql:CharSet", "utf8mb4"); } } }