mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
minor schema update
This commit is contained in:
parent
be95b5ffd0
commit
e11d8f3766
@ -41,6 +41,8 @@ CREATE TABLE IF NOT EXISTS `tncm_agent` (
|
|||||||
`model` text,
|
`model` text,
|
||||||
`protocol` int unsigned not null default 0,
|
`protocol` int unsigned not null default 0,
|
||||||
`cred_key` varchar(100),
|
`cred_key` varchar(100),
|
||||||
|
`status` int(4) NOT NULL default 5,
|
||||||
|
`last_status_change` bigint(20) NOT NULL default 0,
|
||||||
PRIMARY KEY (`id_agent`),
|
PRIMARY KEY (`id_agent`),
|
||||||
FOREIGN KEY (`id_agent`) REFERENCES `tagente`(`id_agente`) ON UPDATE CASCADE ON DELETE CASCADE,
|
FOREIGN KEY (`id_agent`) REFERENCES `tagente`(`id_agente`) ON UPDATE CASCADE ON DELETE CASCADE,
|
||||||
FOREIGN KEY (`cred_key`) REFERENCES `tcredential_store`(`identifier`) ON UPDATE CASCADE ON DELETE SET NULL
|
FOREIGN KEY (`cred_key`) REFERENCES `tcredential_store`(`identifier`) ON UPDATE CASCADE ON DELETE SET NULL
|
||||||
@ -49,8 +51,8 @@ CREATE TABLE IF NOT EXISTS `tncm_agent` (
|
|||||||
CREATE TABLE IF NOT EXISTS `tncm_agent_templates` (
|
CREATE TABLE IF NOT EXISTS `tncm_agent_templates` (
|
||||||
`id_agent` int(10) unsigned NOT NULL,
|
`id_agent` int(10) unsigned NOT NULL,
|
||||||
`id_template` bigint(20) unsigned NOT NULL,
|
`id_template` bigint(20) unsigned NOT NULL,
|
||||||
`status` int(4) NOT NULL default '0',
|
`status` int(4) NOT NULL default 5,
|
||||||
`last_update` bigint(20) NOT NULL default '0',
|
`last_status_change` bigint(20) NOT NULL default 0,
|
||||||
PRIMARY KEY (`id_agent`, `id_template`),
|
PRIMARY KEY (`id_agent`, `id_template`),
|
||||||
FOREIGN KEY (`id_agent`) REFERENCES `tagente`(`id_agente`) ON UPDATE CASCADE ON DELETE CASCADE,
|
FOREIGN KEY (`id_agent`) REFERENCES `tagente`(`id_agente`) ON UPDATE CASCADE ON DELETE CASCADE,
|
||||||
FOREIGN KEY (`id_template`) REFERENCES `tncm_template`(`id`) ON UPDATE CASCADE ON DELETE CASCADE
|
FOREIGN KEY (`id_template`) REFERENCES `tncm_template`(`id`) ON UPDATE CASCADE ON DELETE CASCADE
|
||||||
|
@ -4131,6 +4131,8 @@ CREATE TABLE IF NOT EXISTS `tncm_agent` (
|
|||||||
`model` text,
|
`model` text,
|
||||||
`protocol` int unsigned not null default 0,
|
`protocol` int unsigned not null default 0,
|
||||||
`cred_key` varchar(100),
|
`cred_key` varchar(100),
|
||||||
|
`status` int(4) NOT NULL default 5,
|
||||||
|
`last_status_change` bigint(20) NOT NULL default 0,
|
||||||
PRIMARY KEY (`id_agent`),
|
PRIMARY KEY (`id_agent`),
|
||||||
FOREIGN KEY (`id_agent`) REFERENCES `tagente`(`id_agente`) ON UPDATE CASCADE ON DELETE CASCADE,
|
FOREIGN KEY (`id_agent`) REFERENCES `tagente`(`id_agente`) ON UPDATE CASCADE ON DELETE CASCADE,
|
||||||
FOREIGN KEY (`cred_key`) REFERENCES `tcredential_store`(`identifier`) ON UPDATE CASCADE ON DELETE SET NULL
|
FOREIGN KEY (`cred_key`) REFERENCES `tcredential_store`(`identifier`) ON UPDATE CASCADE ON DELETE SET NULL
|
||||||
@ -4142,8 +4144,8 @@ CREATE TABLE IF NOT EXISTS `tncm_agent` (
|
|||||||
CREATE TABLE IF NOT EXISTS `tncm_agent_templates` (
|
CREATE TABLE IF NOT EXISTS `tncm_agent_templates` (
|
||||||
`id_agent` int(10) unsigned NOT NULL,
|
`id_agent` int(10) unsigned NOT NULL,
|
||||||
`id_template` bigint(20) unsigned NOT NULL,
|
`id_template` bigint(20) unsigned NOT NULL,
|
||||||
`status` int(4) NOT NULL default '0',
|
`status` int(4) NOT NULL default 5,
|
||||||
`last_update` bigint(20) NOT NULL default '0',
|
`last_update` bigint(20) NOT NULL default 0,
|
||||||
PRIMARY KEY (`id_agent`, `id_template`),
|
PRIMARY KEY (`id_agent`, `id_template`),
|
||||||
FOREIGN KEY (`id_agent`) REFERENCES `tagente`(`id_agente`) ON UPDATE CASCADE ON DELETE CASCADE,
|
FOREIGN KEY (`id_agent`) REFERENCES `tagente`(`id_agente`) ON UPDATE CASCADE ON DELETE CASCADE,
|
||||||
FOREIGN KEY (`id_template`) REFERENCES `tncm_template`(`id`) ON UPDATE CASCADE ON DELETE CASCADE
|
FOREIGN KEY (`id_template`) REFERENCES `tncm_template`(`id`) ON UPDATE CASCADE ON DELETE CASCADE
|
||||||
|
@ -29,14 +29,16 @@
|
|||||||
// Begin.
|
// Begin.
|
||||||
namespace PandoraFMS;
|
namespace PandoraFMS;
|
||||||
|
|
||||||
|
use HTML;
|
||||||
|
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
require_once $config['homedir'].'/include/class/HTML.class.php';
|
require_once $config['homedir'].'/include/class/HTML.class.php';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* View class.
|
* View class. Extends HTML to allow print forms and inputs.
|
||||||
*/
|
*/
|
||||||
class View
|
class View extends HTML
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
@ -4067,6 +4067,8 @@ CREATE TABLE IF NOT EXISTS `tncm_agent` (
|
|||||||
`model` text,
|
`model` text,
|
||||||
`protocol` int unsigned not null default 0,
|
`protocol` int unsigned not null default 0,
|
||||||
`cred_key` varchar(100),
|
`cred_key` varchar(100),
|
||||||
|
`status` int(4) NOT NULL default 5,
|
||||||
|
`last_status_change` bigint(20) NOT NULL default 0,
|
||||||
PRIMARY KEY (`id_agent`),
|
PRIMARY KEY (`id_agent`),
|
||||||
FOREIGN KEY (`id_agent`) REFERENCES `tagente`(`id_agente`) ON UPDATE CASCADE ON DELETE CASCADE,
|
FOREIGN KEY (`id_agent`) REFERENCES `tagente`(`id_agente`) ON UPDATE CASCADE ON DELETE CASCADE,
|
||||||
FOREIGN KEY (`cred_key`) REFERENCES `tcredential_store`(`identifier`) ON UPDATE CASCADE ON DELETE SET NULL
|
FOREIGN KEY (`cred_key`) REFERENCES `tcredential_store`(`identifier`) ON UPDATE CASCADE ON DELETE SET NULL
|
||||||
@ -4078,8 +4080,8 @@ CREATE TABLE IF NOT EXISTS `tncm_agent` (
|
|||||||
CREATE TABLE IF NOT EXISTS `tncm_agent_templates` (
|
CREATE TABLE IF NOT EXISTS `tncm_agent_templates` (
|
||||||
`id_agent` int(10) unsigned NOT NULL,
|
`id_agent` int(10) unsigned NOT NULL,
|
||||||
`id_template` bigint(20) unsigned NOT NULL,
|
`id_template` bigint(20) unsigned NOT NULL,
|
||||||
`status` int(4) NOT NULL default '0',
|
`status` int(4) NOT NULL default 5,
|
||||||
`last_update` bigint(20) NOT NULL default '0',
|
`last_status_change` bigint(20) NOT NULL default 0,
|
||||||
PRIMARY KEY (`id_agent`, `id_template`),
|
PRIMARY KEY (`id_agent`, `id_template`),
|
||||||
FOREIGN KEY (`id_agent`) REFERENCES `tagente`(`id_agente`) ON UPDATE CASCADE ON DELETE CASCADE,
|
FOREIGN KEY (`id_agent`) REFERENCES `tagente`(`id_agente`) ON UPDATE CASCADE ON DELETE CASCADE,
|
||||||
FOREIGN KEY (`id_template`) REFERENCES `tncm_template`(`id`) ON UPDATE CASCADE ON DELETE CASCADE
|
FOREIGN KEY (`id_template`) REFERENCES `tncm_template`(`id`) ON UPDATE CASCADE ON DELETE CASCADE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user