From d900ed4f6e12a690ef20440933b9b3d37cf49af5 Mon Sep 17 00:00:00 2001
From: hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>
Date: Tue, 28 Mar 2006 10:58:35 +0000
Subject: Better performance of right checking and other fixes.:w

git-svn-id: svn://svn.zabbix.com/trunk@2712 97f52cf1-0a1b-0410-bd0e-c28be96e8082
---
 create/postgresql/schema.sql | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'create/postgresql/schema.sql')

diff --git a/create/postgresql/schema.sql b/create/postgresql/schema.sql
index 41135ace..a8b82fd9 100644
--- a/create/postgresql/schema.sql
+++ b/create/postgresql/schema.sql
@@ -548,6 +548,8 @@ CREATE TABLE rights (
   PRIMARY KEY (rightid)
 );
 
+CREATE INDEX rights_userid on rights (userid);
+
 CREATE TABLE sessions (
 	sessionid	varchar(32)	DEFAULT '' NOT NULL,
 	userid		int4		DEFAULT '0' NOT NULL,
-- 
cgit 

