aboutsummaryrefslogtreecommitdiff
path: root/sql/pg.new.sql
diff options
context:
space:
mode:
Diffstat (limited to 'sql/pg.new.sql')
-rw-r--r--sql/pg.new.sql3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/pg.new.sql b/sql/pg.new.sql
index b3473a1a0..5ffbedde3 100644
--- a/sql/pg.new.sql
+++ b/sql/pg.new.sql
@@ -311,7 +311,7 @@ CREATE TABLE vcard_search (
lorgname text NOT NULL,
orgunit text NOT NULL,
lorgunit text NOT NULL,
- PRIMARY KEY (server_host, username)
+ PRIMARY KEY (server_host, lusername)
);
CREATE INDEX i_vcard_search_sh_lfn ON vcard_search(server_host, lfn);
@@ -495,6 +495,7 @@ CREATE TABLE muc_room_subscribers (
);
CREATE INDEX i_muc_room_subscribers_host_jid ON muc_room_subscribers USING btree (host, jid);
+CREATE INDEX i_muc_room_subscribers_jid ON muc_room_subscribers USING btree (jid);
CREATE UNIQUE INDEX i_muc_room_subscribers_host_room_jid ON muc_room_subscribers USING btree (host, room, jid);
CREATE TABLE motd (