#8365 NCM v3 snipets

This commit is contained in:
Jonathan 2023-11-22 16:12:37 +01:00
parent d84937e6c9
commit 0a9e127576
2 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,9 @@ START TRANSACTION;
ALTER TABLE `tncm_queue`
ADD COLUMN `id_agent_data` bigint unsigned AFTER `id_script`;
ALTER TABLE `tncm_queue`
ADD COLUMN `snipet` TEXT NULL AFTER `scheduled`;
CREATE TABLE IF NOT EXISTS `tncm_agent_data_template` (
`id` SERIAL,
`name` TEXT,

View File

@ -4270,6 +4270,7 @@ CREATE TABLE IF NOT EXISTS `tncm_queue` (
`id_agent_data` bigint unsigned,
`utimestamp` INT UNSIGNED NOT NULL,
`scheduled` INT UNSIGNED DEFAULT NULL,
`snipet` TEXT 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
) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;