fix migration (merge)
This commit is contained in:
@ -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;
|
@ -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;
|
|
Reference in New Issue
Block a user