From 15e80de184d1e99cb24232361314ea02cb966506 Mon Sep 17 00:00:00 2001 From: Dasc3er Date: Wed, 1 Sep 2021 17:55:34 +0200 Subject: [PATCH] Aggiunta chiave primaria per associazione attributi-articoli --- update/2_4_26.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/update/2_4_26.sql b/update/2_4_26.sql index 991b4c62e..2632b8b51 100644 --- a/update/2_4_26.sql +++ b/update/2_4_26.sql @@ -54,6 +54,7 @@ CREATE TABLE IF NOT EXISTS `mg_articolo_attributo` ( `id_valore` int(11) NOT NULL, `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + PRIMARY KEY(`id_articolo`, `id_valore`), FOREIGN KEY (`id_articolo`) REFERENCES `mg_articoli`(`id`), FOREIGN KEY (`id_valore`) REFERENCES `mg_valori_attributi`(`id`) ) ENGINE=InnoDB;