diff options
author | alex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-03-16 14:07:33 +0000 |
---|---|---|
committer | alex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-03-16 14:07:33 +0000 |
commit | 77033fb6a17438cba72bdb642b189ea086b34894 (patch) | |
tree | 2121e1da58976d55d4807ac127e0b61663b0b7ba /upgrades/dbpatches | |
parent | 4990e4cbc635b6ff953481e7d1147a39664d6a2b (diff) | |
download | zabbix-77033fb6a17438cba72bdb642b189ea086b34894.tar.gz zabbix-77033fb6a17438cba72bdb642b189ea086b34894.tar.xz zabbix-77033fb6a17438cba72bdb642b189ea086b34894.zip |
- added events.object (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@3894 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'upgrades/dbpatches')
5 files changed, 9 insertions, 4 deletions
diff --git a/upgrades/dbpatches/1.3/mysql/patch/dhosts.sql b/upgrades/dbpatches/1.3/mysql/patch/dhosts.sql index 8cc14531..d15489c8 100644 --- a/upgrades/dbpatches/1.3/mysql/patch/dhosts.sql +++ b/upgrades/dbpatches/1.3/mysql/patch/dhosts.sql @@ -4,6 +4,7 @@ CREATE TABLE dhosts ( ip varchar(15) DEFAULT '' NOT NULL, status integer DEFAULT '0' NOT NULL, lastup integer DEFAULT '0' NOT NULL, - lastdown integer DEFAULT '0' NOT NULL, + lastdown integer DEFAULT '0' NOT NULL, + eventsent integer DEFAULT '0' NOT NULL, PRIMARY KEY (dhostid) ) type=InnoDB; diff --git a/upgrades/dbpatches/1.3/mysql/patch/dservices.sql b/upgrades/dbpatches/1.3/mysql/patch/dservices.sql index 9904db8c..9c8fc2b2 100644 --- a/upgrades/dbpatches/1.3/mysql/patch/dservices.sql +++ b/upgrades/dbpatches/1.3/mysql/patch/dservices.sql @@ -5,6 +5,7 @@ CREATE TABLE dservices ( port integer DEFAULT '0' NOT NULL, status integer DEFAULT '0' NOT NULL, lastup integer DEFAULT '0' NOT NULL, - lastdown integer DEFAULT '0' NOT NULL, + lastdown integer DEFAULT '0' NOT NULL, + eventsent integer DEFAULT '0' NOT NULL, PRIMARY KEY (dserviceid) ) type=InnoDB; diff --git a/upgrades/dbpatches/1.3/mysql/patch/events.sql b/upgrades/dbpatches/1.3/mysql/patch/events.sql index 2c185638..b664f58f 100644 --- a/upgrades/dbpatches/1.3/mysql/patch/events.sql +++ b/upgrades/dbpatches/1.3/mysql/patch/events.sql @@ -1,7 +1,8 @@ CREATE TABLE events ( eventid bigint unsigned DEFAULT '0' NOT NULL, source integer DEFAULT '0' NOT NULL, - sourceid bigint unsigned DEFAULT '0' NOT NULL, + object integer DEFAULT '0' NOT NULL, + objectid bigint unsigned DEFAULT '0' NOT NULL, clock integer DEFAULT '0' NOT NULL, value integer DEFAULT '0' NOT NULL, acknowledged integer DEFAULT '0' NOT NULL, @@ -10,5 +11,5 @@ CREATE TABLE events ( CREATE INDEX events_1 on events (triggerid,source,clock); CREATE INDEX events_2 on events (clock); -insert into events select eventid,0,triggerid,clock,value,acknowledged from alarms; +insert into events select eventid,0,0,triggerid,clock,value,acknowledged from alarms; drop table alarms; diff --git a/upgrades/dbpatches/1.3/postgresql/patch/dhosts.sql b/upgrades/dbpatches/1.3/postgresql/patch/dhosts.sql index 37f3649e..f4a1c855 100644 --- a/upgrades/dbpatches/1.3/postgresql/patch/dhosts.sql +++ b/upgrades/dbpatches/1.3/postgresql/patch/dhosts.sql @@ -5,5 +5,6 @@ CREATE TABLE dhosts ( status integer DEFAULT '0' NOT NULL, lastup integer DEFAULT '0' NOT NULL, lastdown integer DEFAULT '0' NOT NULL, + eventsent integer DEFAULT '0' NOT NULL, PRIMARY KEY (dhostid) ); diff --git a/upgrades/dbpatches/1.3/postgresql/patch/dservices.sql b/upgrades/dbpatches/1.3/postgresql/patch/dservices.sql index 3a2ec37a..2636c81d 100644 --- a/upgrades/dbpatches/1.3/postgresql/patch/dservices.sql +++ b/upgrades/dbpatches/1.3/postgresql/patch/dservices.sql @@ -6,5 +6,6 @@ CREATE TABLE dservices ( status integer DEFAULT '0' NOT NULL, lastup integer DEFAULT '0' NOT NULL, lastdown integer DEFAULT '0' NOT NULL, + eventsent integer DEFAULT '0' NOT NULL, PRIMARY KEY (dserviceid) ); |