-- DropForeignKey
ALTER TABLE "Vendor" DROP CONSTRAINT "Vendor_addressId_fkey";

-- AlterTable
ALTER TABLE "Vendor" ALTER COLUMN "addressId" DROP NOT NULL;

-- AddForeignKey
ALTER TABLE "Vendor" ADD CONSTRAINT "Vendor_addressId_fkey" FOREIGN KEY ("addressId") REFERENCES "Address"("id") ON DELETE SET NULL ON UPDATE CASCADE;
