using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace SPMS.Infrastructure.Migrations { /// public partial class AddTempPasswordFieldsToAdmin : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "MustChangePassword", table: "Admin", type: "tinyint(1)", nullable: false, defaultValue: false); migrationBuilder.AddColumn( name: "TempPasswordIssuedAt", table: "Admin", type: "datetime(6)", nullable: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "MustChangePassword", table: "Admin"); migrationBuilder.DropColumn( name: "TempPasswordIssuedAt", table: "Admin"); } } }