summaryrefslogtreecommitdiffstats
path: root/upgrades/dbpatches/1.3/postgresql/patch
diff options
context:
space:
mode:
authoralex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-03-26 11:02:38 +0000
committeralex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-03-26 11:02:38 +0000
commit06b28d51801ae56b7b9488792aa547329862e124 (patch)
treeb963b50aaf39d1c75c2fcd5024dee0d2f58e5e09 /upgrades/dbpatches/1.3/postgresql/patch
parent9ff7a278bca184372c54e36dd444cc52b3f395ca (diff)
downloadzabbix-06b28d51801ae56b7b9488792aa547329862e124.tar.gz
zabbix-06b28d51801ae56b7b9488792aa547329862e124.tar.xz
zabbix-06b28d51801ae56b7b9488792aa547329862e124.zip
Minor changes of database patches.
git-svn-id: svn://svn.zabbix.com/trunk@3925 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'upgrades/dbpatches/1.3/postgresql/patch')
-rw-r--r--upgrades/dbpatches/1.3/postgresql/patch/events.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/upgrades/dbpatches/1.3/postgresql/patch/events.sql b/upgrades/dbpatches/1.3/postgresql/patch/events.sql
index e9d786b8..18b6c5ee 100644
--- a/upgrades/dbpatches/1.3/postgresql/patch/events.sql
+++ b/upgrades/dbpatches/1.3/postgresql/patch/events.sql
@@ -7,7 +7,7 @@ CREATE TABLE events (
acknowledged integer DEFAULT '0' NOT NULL,
PRIMARY KEY (eventid)
);
-CREATE INDEX events_1 on events (triggerid,source,clock);
+CREATE INDEX events_1 on events (source,object,objectid,clock);
CREATE INDEX events_2 on events (clock);
insert into events select alarmid,0,triggerid,clock,value,acknowledged from alarms;