From 298b29e6f3e186478f2bb03a549b7efc03dbdf6b Mon Sep 17 00:00:00 2001 From: Pek5892 Date: Tue, 6 Jun 2023 17:12:51 +0200 Subject: [PATCH] Aggiunta vincolo fra ddt e righe ddt --- update/2_4_47.sql | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 update/2_4_47.sql diff --git a/update/2_4_47.sql b/update/2_4_47.sql new file mode 100644 index 000000000..4ae2fdf36 --- /dev/null +++ b/update/2_4_47.sql @@ -0,0 +1,2 @@ +-- Aggiunta vincolo fra ddt e righe ddt +ALTER TABLE `dt_righe_ddt` ADD CONSTRAINT `dt_righe_ddt_ibfk_2` FOREIGN KEY (`idddt`) REFERENCES `dt_ddt`(`id`) ON DELETE CASCADE ON UPDATE RESTRICT; \ No newline at end of file