#8365 remove fk tncm_queue
This commit is contained in:
parent
63c74e2aa9
commit
307fd7b8cb
|
@ -1,7 +1,6 @@
|
|||
START TRANSACTION;
|
||||
|
||||
ALTER TABLE `tncm_queue`
|
||||
ADD COLUMN `id_agent_data` bigint unsigned AFTER `id_script`,
|
||||
ADD CONSTRAINT `fk_tncm_queue_tncm_agent_data` FOREIGN KEY (`id_agent_data`) REFERENCES `tncm_agent_data`(`id`) ON UPDATE CASCADE ON DELETE SET NULL;
|
||||
ADD COLUMN `id_agent_data` bigint unsigned AFTER `id_script`;
|
||||
|
||||
COMMIT;
|
||||
|
|
|
@ -4244,8 +4244,7 @@ CREATE TABLE IF NOT EXISTS `tncm_queue` (
|
|||
`utimestamp` INT UNSIGNED NOT NULL,
|
||||
`scheduled` INT UNSIGNED DEFAULT NULL,
|
||||
FOREIGN KEY (`id_agent`) REFERENCES `tagente`(`id_agente`) ON UPDATE CASCADE ON DELETE CASCADE,
|
||||
FOREIGN KEY (`id_script`) REFERENCES `tncm_script`(`id`) ON UPDATE CASCADE ON DELETE CASCADE,
|
||||
FOREIGN KEY (`id_agent_data`) REFERENCES `tncm_agent_data`(`id`) ON UPDATE CASCADE ON DELETE SET NULL
|
||||
FOREIGN KEY (`id_script`) REFERENCES `tncm_script`(`id`) ON UPDATE CASCADE ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
|
||||
|
||||
-- ----------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue