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/1.3/mysql/patch/events.sql | |
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/1.3/mysql/patch/events.sql')
-rw-r--r-- | upgrades/dbpatches/1.3/mysql/patch/events.sql | 5 |
1 files changed, 3 insertions, 2 deletions
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; |