/*
  Warnings:

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

*/
-- DropForeignKey
ALTER TABLE `comment` DROP FOREIGN KEY `Comment_responseId_fkey`;

-- AlterTable
ALTER TABLE `comment` DROP COLUMN `responseId`;

-- AlterTable
ALTER TABLE `response` ADD COLUMN `commentId` INTEGER NULL;

-- AddForeignKey
ALTER TABLE `Response` ADD CONSTRAINT `Response_commentId_fkey` FOREIGN KEY (`commentId`) REFERENCES `Comment`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
