/*
  Warnings:

  - Added the required column `tool_name` to the `tool_call` table without a default value. This is not possible if the table is not empty.

*/
-- DropForeignKey
ALTER TABLE "tool_call" DROP CONSTRAINT "tool_call_tool_id_fkey";

-- AlterTable
ALTER TABLE "tool_call" ADD COLUMN     "tool_name" TEXT NOT NULL,
ALTER COLUMN "tool_id" DROP NOT NULL;

-- AddForeignKey
ALTER TABLE "tool_call" ADD CONSTRAINT "tool_call_tool_id_fkey" FOREIGN KEY ("tool_id") REFERENCES "tool"("id") ON DELETE SET NULL ON UPDATE CASCADE;
