summaryrefslogtreecommitdiffstats
path: root/upgrades
diff options
context:
space:
mode:
authoralex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-08-15 07:29:34 +0000
committeralex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-08-15 07:29:34 +0000
commitb008b279d94b38f5ad2bde137352d456471e48b2 (patch)
treeca6bf52e6fc9b69d0bb48d62a1b0d4a7ff628002 /upgrades
parente526132acbbf45962855f93195f286e589a23e9b (diff)
downloadzabbix-b008b279d94b38f5ad2bde137352d456471e48b2.tar.gz
zabbix-b008b279d94b38f5ad2bde137352d456471e48b2.tar.xz
zabbix-b008b279d94b38f5ad2bde137352d456471e48b2.zip
- added missing index on items_applications.itemid (Alexei)
[svn merge -r4562:4565 svn://svn.zabbix.com/branches/1.4.2] git-svn-id: svn://svn.zabbix.com/trunk@4566 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'upgrades')
-rw-r--r--upgrades/dbpatches/1.4/mysql/patch/items_applications.sql1
-rw-r--r--upgrades/dbpatches/1.4/postgresql/patch/items_applications.sql1
2 files changed, 2 insertions, 0 deletions
diff --git a/upgrades/dbpatches/1.4/mysql/patch/items_applications.sql b/upgrades/dbpatches/1.4/mysql/patch/items_applications.sql
index 6d02fd7d..d6d37fc1 100644
--- a/upgrades/dbpatches/1.4/mysql/patch/items_applications.sql
+++ b/upgrades/dbpatches/1.4/mysql/patch/items_applications.sql
@@ -17,6 +17,7 @@ CREATE TABLE items_applications_tmp (
PRIMARY KEY (itemappid)
) ENGINE=InnoDB;
CREATE INDEX items_applications_1 on items_applications_tmp (applicationid,itemid);
+CREATE INDEX items_applications_2 on items_applications_tmp (itemid);
insert into items_applications_tmp select * from items_applications;
drop table items_applications;
diff --git a/upgrades/dbpatches/1.4/postgresql/patch/items_applications.sql b/upgrades/dbpatches/1.4/postgresql/patch/items_applications.sql
index f16ccc3e..505d2ce0 100644
--- a/upgrades/dbpatches/1.4/postgresql/patch/items_applications.sql
+++ b/upgrades/dbpatches/1.4/postgresql/patch/items_applications.sql
@@ -17,6 +17,7 @@ CREATE TABLE items_applications_tmp (
PRIMARY KEY (itemappid)
) with OIDS;
CREATE INDEX items_applications_1 on items_applications_tmp (applicationid,itemid);
+CREATE INDEX items_applications_2 on items_applications_tmp (itemid);
insert into items_applications_tmp select * from items_applications;
drop table items_applications;