1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-23 05:54:03 +01:00

Fix delle query (2.4.1)

This commit is contained in:
Thomas Zilio 2018-06-16 18:21:47 +02:00
parent 1b88be1609
commit 3a483e975a

View File

@ -92,7 +92,7 @@ CREATE TABLE IF NOT EXISTS `co_righe_contratti_materiali` (
`sconto_unitario` decimal(12,4) NOT NULL,
`tipo_sconto` enum('UNT','PRC') NOT NULL DEFAULT 'UNT',
PRIMARY KEY (`id`),
FOREIGN KEY `id_riga_contratto` (`id_riga_contratto`)
KEY `id_riga_contratto` (`id_riga_contratto`)
) ENGINE=InnoDB;
@ -117,8 +117,8 @@ CREATE TABLE IF NOT EXISTS `co_righe_contratti_articoli` (
`abilita_serial` tinyint(1) NOT NULL DEFAULT '0',
`idimpianto` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
FOREIGN KEY `id_riga_contratto` (`id_riga_contratto`),
FOREIGN KEY `idimpianto` (`idimpianto`)
KEY `id_riga_contratto` (`id_riga_contratto`),
KEY `idimpianto` (`idimpianto`)
) ENGINE=InnoDB;