fix migration (merge)

This commit is contained in:
Dobromir Popov
2024-06-17 22:48:12 +03:00
parent 92447348cb
commit 50bbe7d02a
2 changed files with 1 additions and 7 deletions

View File

@ -19,4 +19,4 @@ CREATE TABLE `Survey` (
-- AddForeignKey -- AddForeignKey
ALTER TABLE `Message` ALTER TABLE `Message`
ADD CONSTRAINT `Message_surveyId_fkey` FOREIGN KEY (`surveyId`) REFERENCES `Survey` (`id`) ON DELETE SET NULL ON UPDATE CASCADE; ADD CONSTRAINT `Message_surveyId_fkey` FOREIGN KEY (`surveyId`) REFERENCES `Survey` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

View File

@ -1,6 +0,0 @@
-- DropForeignKey
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;