2007-02-22 Sancho Lerena <slerena@artica.es>
* pandoradb.sql: Fixed some problems in last commit and fixed utimestamp length. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@381 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
c884d7d96f
commit
b0bca3af10
|
@ -1,3 +1,7 @@
|
|||
2007-02-22 Sancho Lerena <slerena@artica.es>
|
||||
|
||||
* pandoradb.sql: Fixed some problems in last commit.
|
||||
|
||||
2007-02-21 Raul Mateos <raulofpandora@gmail.com>
|
||||
|
||||
* pandoradb.sql: Solved small problems that caused some tables not
|
||||
|
@ -6,8 +10,8 @@
|
|||
* operation/active_console/lib/db_functions.php: Remove ".." in include
|
||||
path for config file.
|
||||
|
||||
* general/logon_ok.php: Use new styles and small check to show some text if
|
||||
no data.
|
||||
* general/logon_ok.php: Use new styles and small check to show
|
||||
some text if no data.
|
||||
|
||||
* include/styles/pandora.css: New styles.
|
||||
|
||||
|
|
|
@ -46,12 +46,10 @@ CREATE TABLE `tagente_datos` (
|
|||
`id_agente_modulo` int(10) unsigned NOT NULL default '0',
|
||||
`datos` double(18,2) default NULL,
|
||||
`timestamp` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
`id_agente` bigint(4) unsigned NOT NULL default '0',
|
||||
`utimestamp` mediumint(12) unsigned NOT NULL default '0',
|
||||
`id_agente` mediumint(8) unsigned NOT NULL default '0',
|
||||
`utimestamp` integer unsigned NOT NULL default '0',
|
||||
PRIMARY KEY (`id_agente_datos`),
|
||||
KEY `data_index_1` (`id_agente_modulo`),
|
||||
KEY `data_index_2` (`id_agente`),
|
||||
KEY `data_index_3` (`timestamp`)
|
||||
KEY `data_index_1` (`id_agente_modulo`, `id_agente` ),
|
||||
) TYPE=InnoDB;
|
||||
|
||||
# Database: pandora
|
||||
|
@ -59,7 +57,7 @@ CREATE TABLE `tagente_datos` (
|
|||
#
|
||||
CREATE TABLE `tagente_datos_inc` (
|
||||
`id_adi` bigint(20) unsigned NOT NULL auto_increment,
|
||||
`id_agente_modulo` int(10) unsigned NOT NULL default '0',
|
||||
`id_agente_modulo` mediumint(8) unsigned NOT NULL default '0',
|
||||
`datos` double(18,2) default NULL,
|
||||
`timestamp` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
PRIMARY KEY (`id_adi`),
|
||||
|
@ -74,11 +72,10 @@ CREATE TABLE `tagente_datos_string` (
|
|||
`id_agente_modulo` int(10) unsigned NOT NULL default '0',
|
||||
`datos` tinytext NOT NULL,
|
||||
`timestamp` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
`id_agente` bigint(4) unsigned NOT NULL default '0',
|
||||
`utimestamp` mediumint(12) unsigned NOT NULL default '0',
|
||||
`id_agente` mediumint(8) unsigned NOT NULL default '0',
|
||||
`utimestamp` integer unsigned NOT NULL default '0',
|
||||
PRIMARY KEY (`id_tagente_datos_string`),
|
||||
KEY `data_string_index_1` (`id_agente_modulo`),
|
||||
KEY `data_string_index_2` (`id_agente`)
|
||||
KEY `data_index_1` (`id_agente_modulo`, `id_agente` ),
|
||||
) TYPE=InnoDB;
|
||||
|
||||
# Database: pandora
|
||||
|
@ -86,14 +83,14 @@ CREATE TABLE `tagente_datos_string` (
|
|||
#
|
||||
CREATE TABLE `tagente_estado` (
|
||||
`id_agente_estado` int(10) unsigned NOT NULL auto_increment,
|
||||
`id_agente_modulo` int(10) unsigned NOT NULL default '0',
|
||||
`id_agente_modulo` mediumint(8) unsigned NOT NULL default '0',
|
||||
`datos` varchar(255) NOT NULL default '',
|
||||
`timestamp` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
`cambio` tinyint(2) unsigned NOT NULL default '0',
|
||||
`estado` tinyint(2) unsigned NOT NULL default '0',
|
||||
`id_agente` int(8) unsigned NOT NULL default '0',
|
||||
`id_agente` mediumint(8) unsigned NOT NULL default '0',
|
||||
`last_try` datetime default NULL,
|
||||
`utimestamp` mediumint(12) unsigned NOT NULL default '0',
|
||||
`utimestamp` integer unsigned NOT NULL default '0',
|
||||
PRIMARY KEY (`id_agente_estado`),
|
||||
KEY `status_index_2` (`id_agente_modulo`,`estado`)
|
||||
) TYPE=InnoDB;
|
||||
|
@ -408,6 +405,7 @@ CREATE TABLE `ttrap` (
|
|||
`status`tinyint(3) unsigned NOT NULL default '0',
|
||||
`id_usuario` varchar(150) default '',
|
||||
`timestamp` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
`utimestamp` integer unsigned NOT NULL default '0',
|
||||
PRIMARY KEY (`id_trap`)
|
||||
) TYPE=InnoDB COMMENT='SNMP Trap table';
|
||||
|
||||
|
|
Loading…
Reference in New Issue