fix migrations

This commit is contained in:
Dobromir Popov
2024-06-17 22:42:37 +03:00
parent 905ea86329
commit 92447348cb
2 changed files with 11 additions and 7 deletions

View File

@@ -1,5 +1,6 @@
-- DropForeignKey
ALTER TABLE `message` DROP FOREIGN KEY `Message_surveyId_fkey`;
ALTER TABLE `Message` DROP FOREIGN KEY `Message_surveyId_fkey`;
-- AddForeignKey
ALTER TABLE `Message` ADD CONSTRAINT `Message_surveyId_fkey` FOREIGN KEY (`surveyId`) REFERENCES `Survey`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE `Message`
ADD CONSTRAINT `Message_surveyId_fkey` FOREIGN KEY (`surveyId`) REFERENCES `Survey` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;