diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2012-03-31 21:41:54 +1000 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2012-03-31 21:41:54 +1000 |
commit | 6b3875814c47ba3ea4d76c329f9d63b0d96510e7 (patch) | |
tree | f9af9c20af6e9331e9bc9a4e38f56a82a5ddf187 /src/odbc/pg.sql | |
parent | Change log level from informational to error (diff) |
ODBC support for mod_muc
Diffstat (limited to 'src/odbc/pg.sql')
-rw-r--r-- | src/odbc/pg.sql | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/odbc/pg.sql b/src/odbc/pg.sql index 06fcc47c1..aae472d6b 100644 --- a/src/odbc/pg.sql +++ b/src/odbc/pg.sql @@ -219,3 +219,22 @@ CREATE TABLE pubsub_subscription_opt ( opt_value text ); CREATE UNIQUE INDEX i_pubsub_subscription_opt ON pubsub_subscription_opt USING btree (subid, opt_name); + +CREATE TABLE muc_room ( + name text NOT NULL, + host text NOT NULL, + opts text NOT NULL, + created_at TIMESTAMP NOT NULL DEFAULT now() +); + +CREATE UNIQUE INDEX i_muc_room_name_host ON muc_room USING btree (name, host); + +CREATE TABLE muc_registered ( + jid text NOT NULL, + host text NOT NULL, + nick text NOT NULL, + created_at TIMESTAMP NOT NULL DEFAULT now() +); + +CREATE INDEX i_muc_registered_nick ON muc_registered USING btree (nick); +CREATE UNIQUE INDEX i_muc_registered_jid_host ON muc_registered USING btree (jid, host); |