using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace vendorApproverBackend.Migrations
{
///
public partial class UpdateRequestLetterAddPqRequestId : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn(
name: "created_pq_request_id",
table: "vendor_request_letters",
type: "bigint",
nullable: true);
migrationBuilder.AlterColumn(
name: "VendorResources",
table: "PrequalificationRequests",
type: "jsonb",
nullable: true,
oldClrType: typeof(string),
oldType: "jsonb");
migrationBuilder.AlterColumn(
name: "TypeTest",
table: "PrequalificationRequests",
type: "jsonb",
nullable: true,
oldClrType: typeof(string),
oldType: "jsonb");
migrationBuilder.AlterColumn(
name: "QualityHSERisk",
table: "PrequalificationRequests",
type: "jsonb",
nullable: true,
oldClrType: typeof(string),
oldType: "jsonb");
migrationBuilder.AlterColumn(
name: "GeneralInformation",
table: "PrequalificationRequests",
type: "jsonb",
nullable: true,
oldClrType: typeof(string),
oldType: "jsonb");
migrationBuilder.AlterColumn(
name: "FinancialStanding",
table: "PrequalificationRequests",
type: "jsonb",
nullable: true,
oldClrType: typeof(string),
oldType: "jsonb");
migrationBuilder.AlterColumn(
name: "EquipmentGeneralArrangement",
table: "PrequalificationRequests",
type: "jsonb",
nullable: true,
oldClrType: typeof(string),
oldType: "jsonb");
migrationBuilder.AlterColumn(
name: "Declaration",
table: "PrequalificationRequests",
type: "jsonb",
nullable: true,
oldClrType: typeof(string),
oldType: "jsonb");
migrationBuilder.AlterColumn(
name: "Compliance",
table: "PrequalificationRequests",
type: "jsonb",
nullable: true,
oldClrType: typeof(string),
oldType: "jsonb");
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "created_pq_request_id",
table: "vendor_request_letters");
migrationBuilder.AlterColumn(
name: "VendorResources",
table: "PrequalificationRequests",
type: "jsonb",
nullable: false,
defaultValue: "{}",
oldClrType: typeof(string),
oldType: "jsonb",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "TypeTest",
table: "PrequalificationRequests",
type: "jsonb",
nullable: false,
defaultValue: "{}",
oldClrType: typeof(string),
oldType: "jsonb",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "QualityHSERisk",
table: "PrequalificationRequests",
type: "jsonb",
nullable: false,
defaultValue: "{}",
oldClrType: typeof(string),
oldType: "jsonb",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "GeneralInformation",
table: "PrequalificationRequests",
type: "jsonb",
nullable: false,
defaultValue: "{}",
oldClrType: typeof(string),
oldType: "jsonb",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "FinancialStanding",
table: "PrequalificationRequests",
type: "jsonb",
nullable: false,
defaultValue: "{}",
oldClrType: typeof(string),
oldType: "jsonb",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "EquipmentGeneralArrangement",
table: "PrequalificationRequests",
type: "jsonb",
nullable: false,
defaultValue: "{}",
oldClrType: typeof(string),
oldType: "jsonb",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "Declaration",
table: "PrequalificationRequests",
type: "jsonb",
nullable: false,
defaultValue: "{}",
oldClrType: typeof(string),
oldType: "jsonb",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "Compliance",
table: "PrequalificationRequests",
type: "jsonb",
nullable: false,
defaultValue: "{}",
oldClrType: typeof(string),
oldType: "jsonb",
oldNullable: true);
}
}
}