/*
  Warnings:

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

*/
-- DropForeignKey
ALTER TABLE "programme_candidate" DROP CONSTRAINT "programme_candidate_department_id_fkey";

-- AlterTable
ALTER TABLE "programme_candidate" DROP COLUMN "department_id",
ADD COLUMN     "departmentId" TEXT;

-- AddForeignKey
ALTER TABLE "programme_candidate" ADD FOREIGN KEY ("departmentId") REFERENCES "department"("id") ON DELETE SET NULL ON UPDATE CASCADE;
