using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace vendorApproverBackend.Migrations { /// public partial class RequestRenewNewAttributes : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "type", table: "users_table", type: "integer", nullable: true, oldClrType: typeof(int), oldType: "integer"); migrationBuilder.AddColumn( name: "is_expired_over_two_years", table: "request_renews", type: "boolean", nullable: true); migrationBuilder.AddColumn( name: "require_factory_audit", table: "request_renews", type: "boolean", nullable: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "is_expired_over_two_years", table: "request_renews"); migrationBuilder.DropColumn( name: "require_factory_audit", table: "request_renews"); migrationBuilder.AlterColumn( name: "type", table: "users_table", type: "integer", nullable: false, defaultValue: 0, oldClrType: typeof(int), oldType: "integer", oldNullable: true); } } }