Merge branch 'ent-9391-Cambios-en-el-inventario-remoto' into 'develop'

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

See merge request artica/pandorafms!5151
This commit is contained in:
Diego Muñoz-Reja 2022-10-11 15:14:45 +00:00
commit 8154ef5533
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

@ -2656,6 +2656,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