/*
  Warnings:

  - You are about to drop the column `field` on the `Opportunity` table. All the data in the column will be lost.

*/
-- AlterTable
ALTER TABLE "Opportunity" DROP COLUMN "field",
ADD COLUMN     "fieldId" TEXT;

-- AddForeignKey
ALTER TABLE "Opportunity" ADD CONSTRAINT "Opportunity_fieldId_fkey" FOREIGN KEY ("fieldId") REFERENCES "Activity"("id") ON DELETE CASCADE ON UPDATE CASCADE;
