added change to allow inventory modules to load script from a path

This commit is contained in:
alejandro.campos@artica.es 2022-09-26 15:30:31 +02:00
parent b7bef2dd58
commit 7e85bea0f4
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,6 @@
START TRANSACTION;
ALTER TABLE `tmodule_inventory` ADD COLUMN `script_mode` INT NOT NULL DEFAULT 2;
ALTER TABLE `tmodule_inventory` ADD COLUMN `script_path` VARCHAR(1000) DEFAULT '';
COMMIT;

View File

@ -2651,6 +2651,8 @@ CREATE TABLE IF NOT EXISTS `tmodule_inventory` (
`data_format` TEXT ,
`code` BLOB NOT NULL,
`block_mode` INT NOT NULL DEFAULT 0,
`script_mode` INT NOT NULL DEFAULT 1,
`script_path` VARCHAR(1000) DEFAULT '',
PRIMARY KEY (`id_module_inventory`),
FOREIGN KEY (`id_os`) REFERENCES tconfig_os(`id_os`)
ON UPDATE CASCADE ON DELETE CASCADE