From 9bb0fbb8a50bcf395bafcf2d2edfba6a96cf0794 Mon Sep 17 00:00:00 2001
From: hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>
Date: Sun, 12 Jan 2003 14:09:54 +0000
Subject: Updated PostgreSQL schema and added patches.

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

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

diff --git a/create/postgresql/schema.sql b/create/postgresql/schema.sql
index 11cc9c71..672b8725 100644
--- a/create/postgresql/schema.sql
+++ b/create/postgresql/schema.sql
@@ -433,4 +433,19 @@ CREATE TABLE service_alarms (
 CREATE INDEX services_alarms_serviceid_clock on service_alarms (serviceid,clock);
 CREATE INDEX services_alarms_clock on service_alarms (clock);
 
+--
+-- Table structure for table 'profiles'
+--
+
+CREATE TABLE profiles (
+  profileid		serial,
+  userid		int4		DEFAULT '0' NOT NULL,
+  idx			varchar(64)	DEFAULT '' NOT NULL,
+  value			varchar(64)	DEFAULT '' NOT NULL,
+  PRIMARY KEY (profileid)
+);
+
+CREATE INDEX profiles_userid on profiles (userid);
+CREATE UNIQUE INDEX profiles_userid_idx on profiles (userid,idx);
+
 VACUUM ANALYZE;
-- 
cgit 

