Merge branch 'ent-2204-database-changes' into 'develop'

Added the database changes for the custom fields of the remote inventory modules

See merge request artica/pandorafms!1550
This commit is contained in:
nramon 2018-06-19 14:26:50 +02:00
commit b72b0afb6d
2 changed files with 3 additions and 0 deletions

View File

@ -12,4 +12,6 @@ CREATE TABLE IF NOT EXISTS `tdatabase` (
PRIMARY KEY (`id`)
) ENGINE = InnoDB DEFAULT CHARSET=utf8 ;
ALTER TABLE `tagent_module_inventory` ADD COLUMN `custom_fields` MEDIUMBLOB NOT NULL;
COMMIT;

View File

@ -2312,6 +2312,7 @@ CREATE TABLE IF NOT EXISTS `tagent_module_inventory` (
`utimestamp` bigint(20) default '0',
`flag` tinyint(1) unsigned default '1',
`id_policy_module_inventory` int(10) NOT NULL default '0',
`custom_fields` MEDIUMBLOB NOT NULL,
PRIMARY KEY (`id_agent_module_inventory`),
FOREIGN KEY (`id_agente`) REFERENCES tagente(`id_agente`)
ON UPDATE CASCADE ON DELETE CASCADE,