-- DropForeignKey
ALTER TABLE "tool" DROP CONSTRAINT "tool_agent_id_fkey";

-- AlterTable
ALTER TABLE "tool" ALTER COLUMN "agent_id" DROP NOT NULL;

-- AddForeignKey
ALTER TABLE "tool" ADD CONSTRAINT "tool_agent_id_fkey" FOREIGN KEY ("agent_id") REFERENCES "agent"("id") ON DELETE SET NULL ON UPDATE CASCADE;
