1
0
forked from noxious/server

DB relation fix

This commit is contained in:
2024-07-11 00:48:18 +02:00
parent 38bf5c07b6
commit 1fbe621712
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
-- DropForeignKey
ALTER TABLE `ZoneObject` DROP FOREIGN KEY `ZoneObject_objectId_fkey`;
-- AddForeignKey
ALTER TABLE `ZoneObject` ADD CONSTRAINT `ZoneObject_objectId_fkey` FOREIGN KEY (`objectId`) REFERENCES `Object`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;