mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
code style
This commit is contained in:
parent
d0ebb10925
commit
53149712f5
@ -71,7 +71,7 @@ CREATE TABLE IF NOT EXISTS `tagente` (
|
|||||||
`timezone_offset` TINYINT NULL DEFAULT 0 COMMENT 'nuber of hours of diference with the server timezone',
|
`timezone_offset` TINYINT NULL DEFAULT 0 COMMENT 'nuber of hours of diference with the server timezone',
|
||||||
`icon_path` VARCHAR(127) NULL DEFAULT NULL COMMENT 'path in the server to the image of the icon representing the agent' ,
|
`icon_path` VARCHAR(127) NULL DEFAULT NULL COMMENT 'path in the server to the image of the icon representing the agent' ,
|
||||||
`update_gis_data` TINYINT NOT NULL DEFAULT 1 COMMENT 'set it to one to update the position data (altitude, longitude, latitude) when getting information from the agent or to 0 to keep the last value and do not update it',
|
`update_gis_data` TINYINT NOT NULL DEFAULT 1 COMMENT 'set it to one to update the position data (altitude, longitude, latitude) when getting information from the agent or to 0 to keep the last value and do not update it',
|
||||||
`url_address` mediumtext NULL,
|
`url_address` MEDIUMTEXT NULL,
|
||||||
`quiet` TINYINT NOT NULL DEFAULT 0,
|
`quiet` TINYINT NOT NULL DEFAULT 0,
|
||||||
`normal_count` BIGINT NOT NULL DEFAULT 0,
|
`normal_count` BIGINT NOT NULL DEFAULT 0,
|
||||||
`warning_count` BIGINT NOT NULL DEFAULT 0,
|
`warning_count` BIGINT NOT NULL DEFAULT 0,
|
||||||
@ -121,7 +121,7 @@ CREATE TABLE IF NOT EXISTS `tagente_datos_inc` (
|
|||||||
-- ---------------------------------------------------------------------
|
-- ---------------------------------------------------------------------
|
||||||
CREATE TABLE IF NOT EXISTS `tagente_datos_string` (
|
CREATE TABLE IF NOT EXISTS `tagente_datos_string` (
|
||||||
`id_agente_modulo` INT UNSIGNED NOT NULL DEFAULT 0,
|
`id_agente_modulo` INT UNSIGNED NOT NULL DEFAULT 0,
|
||||||
`datos` mediumTEXT,
|
`datos` MEDIUMTEXT,
|
||||||
`utimestamp` INT UNSIGNED NOT NULL DEFAULT 0,
|
`utimestamp` INT UNSIGNED NOT NULL DEFAULT 0,
|
||||||
KEY `data_string_index_1` (`id_agente_modulo`, `utimestamp`),
|
KEY `data_string_index_1` (`id_agente_modulo`, `utimestamp`),
|
||||||
KEY `idx_utimestamp` USING BTREE (`utimestamp`)
|
KEY `idx_utimestamp` USING BTREE (`utimestamp`)
|
||||||
@ -149,7 +149,7 @@ CREATE TABLE IF NOT EXISTS `tagente_datos_log4x` (
|
|||||||
CREATE TABLE IF NOT EXISTS `tagente_estado` (
|
CREATE TABLE IF NOT EXISTS `tagente_estado` (
|
||||||
`id_agente_estado` INT UNSIGNED NOT NULL AUTO_INCREMENT,
|
`id_agente_estado` INT UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||||
`id_agente_modulo` INT NOT NULL DEFAULT 0,
|
`id_agente_modulo` INT NOT NULL DEFAULT 0,
|
||||||
`datos` mediumTEXT,
|
`datos` MEDIUMTEXT,
|
||||||
`timestamp` DATETIME NOT NULL DEFAULT '1970-01-01 00:00:00',
|
`timestamp` DATETIME NOT NULL DEFAULT '1970-01-01 00:00:00',
|
||||||
`estado` INT NOT NULL DEFAULT 0,
|
`estado` INT NOT NULL DEFAULT 0,
|
||||||
`known_status` TINYINT DEFAULT 0,
|
`known_status` TINYINT DEFAULT 0,
|
||||||
@ -234,7 +234,7 @@ CREATE TABLE IF NOT EXISTS `tagente_modulo` (
|
|||||||
`delete_pending` INT UNSIGNED DEFAULT 0,
|
`delete_pending` INT UNSIGNED DEFAULT 0,
|
||||||
`policy_linked` TINYINT UNSIGNED NOT NULL DEFAULT 0,
|
`policy_linked` TINYINT UNSIGNED NOT NULL DEFAULT 0,
|
||||||
`policy_adopted` TINYINT UNSIGNED NOT NULL DEFAULT 0,
|
`policy_adopted` TINYINT UNSIGNED NOT NULL DEFAULT 0,
|
||||||
`custom_string_1` mediumtext,
|
`custom_string_1` MEDIUMTEXT,
|
||||||
`custom_string_2` TEXT,
|
`custom_string_2` TEXT,
|
||||||
`custom_string_3` TEXT,
|
`custom_string_3` TEXT,
|
||||||
`custom_integer_1` INT DEFAULT 0,
|
`custom_integer_1` INT DEFAULT 0,
|
||||||
@ -455,7 +455,7 @@ CREATE TABLE IF NOT EXISTS `talert_actions` (
|
|||||||
CREATE TABLE IF NOT EXISTS `talert_templates` (
|
CREATE TABLE IF NOT EXISTS `talert_templates` (
|
||||||
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
|
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||||
`name` TEXT,
|
`name` TEXT,
|
||||||
`description` mediumtext,
|
`description` MEDIUMTEXT,
|
||||||
`id_alert_action` INT UNSIGNED NULL,
|
`id_alert_action` INT UNSIGNED NULL,
|
||||||
`field1` TEXT,
|
`field1` TEXT,
|
||||||
`field2` TEXT,
|
`field2` TEXT,
|
||||||
@ -606,7 +606,7 @@ CREATE TABLE IF NOT EXISTS `talert_execution_queue` (
|
|||||||
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
|
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||||
`id_alert_template_module` INT UNSIGNED NOT NULL,
|
`id_alert_template_module` INT UNSIGNED NOT NULL,
|
||||||
`alert_mode` TINYINT NOT NULL,
|
`alert_mode` TINYINT NOT NULL,
|
||||||
`data` mediumTEXT,
|
`data` MEDIUMTEXT,
|
||||||
`extra_macros` TEXT,
|
`extra_macros` TEXT,
|
||||||
`utimestamp` BIGINT NOT NULL DEFAULT 0,
|
`utimestamp` BIGINT NOT NULL DEFAULT 0,
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
@ -1063,7 +1063,7 @@ CREATE TABLE IF NOT EXISTS `tnota` (
|
|||||||
`id_incident` BIGINT UNSIGNED NOT NULL,
|
`id_incident` BIGINT UNSIGNED NOT NULL,
|
||||||
`id_usuario` VARCHAR(100) NOT NULL DEFAULT '0',
|
`id_usuario` VARCHAR(100) NOT NULL DEFAULT '0',
|
||||||
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
`nota` mediumTEXT,
|
`nota` MEDIUMTEXT,
|
||||||
PRIMARY KEY (`id_nota`),
|
PRIMARY KEY (`id_nota`),
|
||||||
KEY `id_incident` (`id_incident`)
|
KEY `id_incident` (`id_incident`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
|
) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
|
||||||
@ -1546,10 +1546,10 @@ CREATE TABLE IF NOT EXISTS `treport_content` (
|
|||||||
`period` INT NOT NULL DEFAULT 0,
|
`period` INT NOT NULL DEFAULT 0,
|
||||||
`order` INT NOT NULL DEFAULT 0,
|
`order` INT NOT NULL DEFAULT 0,
|
||||||
`name` VARCHAR(300) NULL,
|
`name` VARCHAR(300) NULL,
|
||||||
`description` mediumtext,
|
`description` MEDIUMTEXT,
|
||||||
`id_agent` INT UNSIGNED NOT NULL DEFAULT 0,
|
`id_agent` INT UNSIGNED NOT NULL DEFAULT 0,
|
||||||
`text` TEXT,
|
`text` TEXT,
|
||||||
`external_source` mediumtext,
|
`external_source` MEDIUMTEXT,
|
||||||
`treport_custom_sql_id` INT UNSIGNED DEFAULT 0,
|
`treport_custom_sql_id` INT UNSIGNED DEFAULT 0,
|
||||||
`header_definition` TINYTEXT,
|
`header_definition` TINYTEXT,
|
||||||
`column_separator` TINYTEXT,
|
`column_separator` TINYTEXT,
|
||||||
@ -1724,7 +1724,7 @@ CREATE TABLE IF NOT EXISTS `tlayout_data` (
|
|||||||
CREATE TABLE IF NOT EXISTS `tplugin` (
|
CREATE TABLE IF NOT EXISTS `tplugin` (
|
||||||
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
|
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||||
`name` VARCHAR(200) NOT NULL,
|
`name` VARCHAR(200) NOT NULL,
|
||||||
`description` mediumtext,
|
`description` MEDIUMTEXT,
|
||||||
`max_timeout` INT UNSIGNED NOT NULL DEFAULT 0,
|
`max_timeout` INT UNSIGNED NOT NULL DEFAULT 0,
|
||||||
`max_retries` INT UNSIGNED NOT NULL DEFAULT 0,
|
`max_retries` INT UNSIGNED NOT NULL DEFAULT 0,
|
||||||
`execute` VARCHAR(250) NOT NULL,
|
`execute` VARCHAR(250) NOT NULL,
|
||||||
@ -2110,7 +2110,7 @@ CREATE TABLE IF NOT EXISTS `ttag` (
|
|||||||
`id_tag` INT unsigned NOT NULL AUTO_INCREMENT,
|
`id_tag` INT unsigned NOT NULL AUTO_INCREMENT,
|
||||||
`name` TEXT ,
|
`name` TEXT ,
|
||||||
`description` TEXT,
|
`description` TEXT,
|
||||||
`url` mediumTEXT,
|
`url` MEDIUMTEXT,
|
||||||
`email` TEXT NULL,
|
`email` TEXT NULL,
|
||||||
`phone` TEXT NULL,
|
`phone` TEXT NULL,
|
||||||
`previous_name` TEXT NULL,
|
`previous_name` TEXT NULL,
|
||||||
@ -2386,7 +2386,7 @@ CREATE TABLE IF NOT EXISTS `trel_item` (
|
|||||||
CREATE TABLE IF NOT EXISTS `tlocal_component` (
|
CREATE TABLE IF NOT EXISTS `tlocal_component` (
|
||||||
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
|
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||||
`name` TEXT,
|
`name` TEXT,
|
||||||
`data` mediumTEXT,
|
`data` MEDIUMTEXT,
|
||||||
`description` VARCHAR(1024) DEFAULT NULL,
|
`description` VARCHAR(1024) DEFAULT NULL,
|
||||||
`id_os` INT UNSIGNED DEFAULT 0,
|
`id_os` INT UNSIGNED DEFAULT 0,
|
||||||
`os_version` VARCHAR(100) DEFAULT '',
|
`os_version` VARCHAR(100) DEFAULT '',
|
||||||
@ -2443,7 +2443,7 @@ CREATE TABLE IF NOT EXISTS `tlocal_component` (
|
|||||||
CREATE TABLE IF NOT EXISTS `tpolicy_modules` (
|
CREATE TABLE IF NOT EXISTS `tpolicy_modules` (
|
||||||
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
|
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||||
`id_policy` INT UNSIGNED NOT NULL DEFAULT 0,
|
`id_policy` INT UNSIGNED NOT NULL DEFAULT 0,
|
||||||
`configuration_data` mediumTEXT,
|
`configuration_data` MEDIUMTEXT,
|
||||||
`id_tipo_modulo` SMALLINT NOT NULL DEFAULT 0,
|
`id_tipo_modulo` SMALLINT NOT NULL DEFAULT 0,
|
||||||
`description` VARCHAR(1024) NOT NULL DEFAULT '',
|
`description` VARCHAR(1024) NOT NULL DEFAULT '',
|
||||||
`name` VARCHAR(200) NOT NULL DEFAULT '',
|
`name` VARCHAR(200) NOT NULL DEFAULT '',
|
||||||
@ -2862,7 +2862,7 @@ CREATE TABLE IF NOT EXISTS `tcollection` (
|
|||||||
`name` VARCHAR(100) NOT NULL DEFAULT '',
|
`name` VARCHAR(100) NOT NULL DEFAULT '',
|
||||||
`short_name` VARCHAR(100) NOT NULL DEFAULT '',
|
`short_name` VARCHAR(100) NOT NULL DEFAULT '',
|
||||||
`id_group` INT UNSIGNED NOT NULL DEFAULT 0,
|
`id_group` INT UNSIGNED NOT NULL DEFAULT 0,
|
||||||
`description` mediumtext,
|
`description` MEDIUMTEXT,
|
||||||
`status` INT UNSIGNED NOT NULL DEFAULT 0,
|
`status` INT UNSIGNED NOT NULL DEFAULT 0,
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
|
) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
|
||||||
@ -2997,7 +2997,7 @@ CREATE TABLE IF NOT EXISTS `tevent_rule` (
|
|||||||
CREATE TABLE IF NOT EXISTS `tevent_alert` (
|
CREATE TABLE IF NOT EXISTS `tevent_alert` (
|
||||||
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
|
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||||
`name` TEXT ,
|
`name` TEXT ,
|
||||||
`description` mediumtext,
|
`description` MEDIUMTEXT,
|
||||||
`order` INT UNSIGNED DEFAULT 0,
|
`order` INT UNSIGNED DEFAULT 0,
|
||||||
`mode` ENUM('PASS','DROP'),
|
`mode` ENUM('PASS','DROP'),
|
||||||
`field1` TEXT ,
|
`field1` TEXT ,
|
||||||
@ -3140,9 +3140,9 @@ CREATE TABLE IF NOT EXISTS `treport_template` (
|
|||||||
`private` TINYINT UNSIGNED NOT NULL DEFAULT 0,
|
`private` TINYINT UNSIGNED NOT NULL DEFAULT 0,
|
||||||
`id_group` MEDIUMINT UNSIGNED NULL DEFAULT NULL,
|
`id_group` MEDIUMINT UNSIGNED NULL DEFAULT NULL,
|
||||||
`custom_logo` VARCHAR(200) DEFAULT NULL,
|
`custom_logo` VARCHAR(200) DEFAULT NULL,
|
||||||
`header` MEDIUMtext ,
|
`header` MEDIUMTEXT ,
|
||||||
`first_page` MEDIUMtext ,
|
`first_page` MEDIUMTEXT ,
|
||||||
`footer` MEDIUMtext ,
|
`footer` MEDIUMTEXT ,
|
||||||
`custom_font` VARCHAR(200) DEFAULT NULL,
|
`custom_font` VARCHAR(200) DEFAULT NULL,
|
||||||
`metaconsole` TINYINT DEFAULT 0,
|
`metaconsole` TINYINT DEFAULT 0,
|
||||||
`agent_regex` VARCHAR(600) NOT NULL DEFAULT '',
|
`agent_regex` VARCHAR(600) NOT NULL DEFAULT '',
|
||||||
@ -3162,10 +3162,10 @@ CREATE TABLE IF NOT EXISTS `treport_content_template` (
|
|||||||
`type` VARCHAR(30) DEFAULT 'simple_graph',
|
`type` VARCHAR(30) DEFAULT 'simple_graph',
|
||||||
`period` INT NOT NULL DEFAULT 0,
|
`period` INT NOT NULL DEFAULT 0,
|
||||||
`order` INT NOT NULL DEFAULT 0,
|
`order` INT NOT NULL DEFAULT 0,
|
||||||
`description` mediumtext,
|
`description` MEDIUMTEXT,
|
||||||
`text_agent` TEXT,
|
`text_agent` TEXT,
|
||||||
`text` TEXT,
|
`text` TEXT,
|
||||||
`external_source` mediumtext,
|
`external_source` MEDIUMTEXT,
|
||||||
`treport_custom_sql_id` INT UNSIGNED DEFAULT 0,
|
`treport_custom_sql_id` INT UNSIGNED DEFAULT 0,
|
||||||
`header_definition` TINYTEXT ,
|
`header_definition` TINYTEXT ,
|
||||||
`column_separator` TINYTEXT ,
|
`column_separator` TINYTEXT ,
|
||||||
@ -3455,7 +3455,7 @@ CREATE TABLE IF NOT EXISTS `tmetaconsole_agent` (
|
|||||||
`timezone_offset` TINYINT NULL DEFAULT 0 COMMENT 'number of hours of diference with the server timezone',
|
`timezone_offset` TINYINT NULL DEFAULT 0 COMMENT 'number of hours of diference with the server timezone',
|
||||||
`icon_path` VARCHAR(127) NULL DEFAULT NULL COMMENT 'path in the server to the image of the icon representing the agent' ,
|
`icon_path` VARCHAR(127) NULL DEFAULT NULL COMMENT 'path in the server to the image of the icon representing the agent' ,
|
||||||
`update_gis_data` TINYINT NOT NULL DEFAULT 1 COMMENT 'set it to one to update the position data (altitude, longitude, latitude) when getting information from the agent or to 0 to keep the last value and do not update it',
|
`update_gis_data` TINYINT NOT NULL DEFAULT 1 COMMENT 'set it to one to update the position data (altitude, longitude, latitude) when getting information from the agent or to 0 to keep the last value and do not update it',
|
||||||
`url_address` mediumtext NULL,
|
`url_address` MEDIUMTEXT NULL,
|
||||||
`quiet` TINYINT NOT NULL DEFAULT 0,
|
`quiet` TINYINT NOT NULL DEFAULT 0,
|
||||||
`normal_count` BIGINT NOT NULL DEFAULT 0,
|
`normal_count` BIGINT NOT NULL DEFAULT 0,
|
||||||
`warning_count` BIGINT NOT NULL DEFAULT 0,
|
`warning_count` BIGINT NOT NULL DEFAULT 0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user