-- DropForeignKey
ALTER TABLE "vendor_histories" DROP CONSTRAINT "vendor_histories_vendor_id_fkey";

-- AlterTable
ALTER TABLE "vendor_histories" ALTER COLUMN "vendor_id" DROP NOT NULL;

-- AddForeignKey
ALTER TABLE "vendor_histories" ADD CONSTRAINT "vendor_histories_vendor_id_fkey" FOREIGN KEY ("vendor_id") REFERENCES "vendors"("id") ON DELETE SET NULL ON UPDATE CASCADE;
