Commit d1853a55 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Added pubsub tables. JM-613

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3648 b35dd754-fafc-0310-a699-88a17e54d16e
parent 8e028de5
......@@ -203,6 +203,105 @@ CREATE TABLE mucConversationLog (
CREATE INDEX mucLog_time_idx ON mucConversationLog (time);
-- PubSub Tables
CREATE TABLE pubsubNode (
serviceID VARCHAR(100) NOT NULL,
nodeID VARCHAR(100) NOT NULL,
leaf INTEGER NOT NULL,
creationDate CHAR(15) NOT NULL,
modificationDate CHAR(15) NOT NULL,
parent VARCHAR(100) NULL,
deliverPayloads INTEGER NOT NULL,
maxPayloadSize INTEGER NULL,
persistItems INTEGER NULL,
maxItems INTEGER NULL,
notifyConfigChanges INTEGER NOT NULL,
notifyDelete INTEGER NOT NULL,
notifyRetract INTEGER NOT NULL,
presenceBased INTEGER NOT NULL,
sendItemSubscribe INTEGER NOT NULL,
publisherModel VARCHAR(15) NOT NULL,
subscriptionEnabled INTEGER NOT NULL,
configSubscription INTEGER NOT NULL,
contacts VARCHAR(4000) NULL,
rosterGroups VARCHAR(4000) NULL,
accessModel VARCHAR(10) NOT NULL,
payloadType VARCHAR(100) NULL,
bodyXSLT VARCHAR(100) NULL,
dataformXSLT VARCHAR(100) NULL,
creator VARCHAR(1024) NOT NULL,
description VARCHAR(255) NULL,
language VARCHAR(255) NULL,
name VARCHAR(50) NULL,
replyPolicy VARCHAR(15) NULL,
replyRooms VARCHAR(4000) NULL,
replyTo VARCHAR(1024) NULL,
associationPolicy VARCHAR(15) NULL,
associationTrusted VARCHAR(4000) NULL,
maxLeafNodes INTEGER NULL,
CONSTRAINT pubsubNode_pk PRIMARY KEY (serviceID, nodeID)
);
CREATE TABLE pubsubAffiliation (
serviceID VARCHAR(100) NOT NULL,
nodeID VARCHAR(100) NOT NULL,
jid VARCHAR(1024) NOT NULL,
affiliation VARCHAR(10) NOT NULL,
CONSTRAINT pubsubAffil_pk PRIMARY KEY (serviceID, nodeID, jid)
);
CREATE TABLE pubsubItem (
serviceID VARCHAR(100) NOT NULL,
nodeID VARCHAR(100) NOT NULL,
id VARCHAR(100) NOT NULL,
jid VARCHAR(1024) NOT NULL,
creationDate CHAR(15) NOT NULL,
payload VARCHAR(4000) NULL,
CONSTRAINT pubsubItem_pk PRIMARY KEY (serviceID, nodeID, id)
);
CREATE TABLE pubsubSubscription (
serviceID VARCHAR(100) NOT NULL,
nodeID VARCHAR(100) NOT NULL,
id VARCHAR(100) NOT NULL,
jid VARCHAR(1024) NOT NULL,
owner VARCHAR(1024) NOT NULL,
state VARCHAR(15) NOT NULL,
deliver INTEGER NOT NULL,
digest INTEGER NOT NULL,
digest_frequency INTEGER NOT NULL,
expire CHAR(15) NULL,
includeBody INTEGER NOT NULL,
showValues VARCHAR(30) NOT NULL,
subscriptionType VARCHAR(10) NOT NULL,
subscriptionDepth INTEGER NOT NULL,
keyword VARCHAR(200) NULL,
CONSTRAINT pubsubSubs_pk PRIMARY KEY (serviceID, nodeID, id, jid)
);
CREATE TABLE pubsubDefaultConf (
serviceID VARCHAR(100) NOT NULL,
leaf INTEGER NOT NULL,
deliverPayloads INTEGER NOT NULL,
maxPayloadSize INTEGER NOT NULL,
persistItems INTEGER NOT NULL,
maxItems INTEGER NOT NULL,
notifyConfigChanges INTEGER NOT NULL,
notifyDelete INTEGER NOT NULL,
notifyRetract INTEGER NOT NULL,
presenceBased INTEGER NOT NULL,
sendItemSubscribe INTEGER NOT NULL,
publisherModel VARCHAR(15) NOT NULL,
subscriptionEnabled INTEGER NOT NULL,
accessModel VARCHAR(10) NOT NULL,
language VARCHAR(255) NULL,
replyPolicy VARCHAR(15) NULL,
associationPolicy VARCHAR(15) NOT NULL,
maxLeafNodes INTEGER NOT NULL,
CONSTRAINT pubsubDefConf_pk PRIMARY KEY (serviceID, leaf)
);
-- Finally, insert default table values
INSERT INTO jiveID (idType, id) VALUES (18, 1);
INSERT INTO jiveID (idType, id) VALUES (19, 1);
......
......@@ -202,6 +202,105 @@ CREATE TABLE mucConversationLog (
);
CREATE INDEX mucLog_time_idx ON mucConversationLog (time);
# PubSub Tables
CREATE TABLE pubsubNode (
serviceID VARCHAR(100) NOT NULL,
nodeID VARCHAR(100) NOT NULL,
leaf INTEGER NOT NULL,
creationDate CHAR(15) NOT NULL,
modificationDate CHAR(15) NOT NULL,
parent VARCHAR(100) NULL,
deliverPayloads INTEGER NOT NULL,
maxPayloadSize INTEGER NULL,
persistItems INTEGER NULL,
maxItems INTEGER NULL,
notifyConfigChanges INTEGER NOT NULL,
notifyDelete INTEGER NOT NULL,
notifyRetract INTEGER NOT NULL,
presenceBased INTEGER NOT NULL,
sendItemSubscribe INTEGER NOT NULL,
publisherModel VARCHAR(15) NOT NULL,
subscriptionEnabled INTEGER NOT NULL,
configSubscription INTEGER NOT NULL,
contacts VARCHAR(4000) NULL,
rosterGroups VARCHAR(4000) NULL,
accessModel VARCHAR(10) NOT NULL,
payloadType VARCHAR(100) NULL,
bodyXSLT VARCHAR(100) NULL,
dataformXSLT VARCHAR(100) NULL,
creator VARCHAR(1024) NOT NULL,
description VARCHAR(255) NULL,
language VARCHAR(255) NULL,
name VARCHAR(50) NULL,
replyPolicy VARCHAR(15) NULL,
replyRooms VARCHAR(4000) NULL,
replyTo VARCHAR(1024) NULL,
associationPolicy VARCHAR(15) NULL,
associationTrusted VARCHAR(4000) NULL,
maxLeafNodes INTEGER NULL,
CONSTRAINT pubsubNode_pk PRIMARY KEY (serviceID, nodeID)
);
CREATE TABLE pubsubAffiliation (
serviceID VARCHAR(100) NOT NULL,
nodeID VARCHAR(100) NOT NULL,
jid VARCHAR(1024) NOT NULL,
affiliation VARCHAR(10) NOT NULL,
CONSTRAINT pubsubAffil_pk PRIMARY KEY (serviceID, nodeID, jid)
);
CREATE TABLE pubsubItem (
serviceID VARCHAR(100) NOT NULL,
nodeID VARCHAR(100) NOT NULL,
id VARCHAR(100) NOT NULL,
jid VARCHAR(1024) NOT NULL,
creationDate CHAR(15) NOT NULL,
payload VARCHAR(4000) NULL,
CONSTRAINT pubsubItem_pk PRIMARY KEY (serviceID, nodeID, id)
);
CREATE TABLE pubsubSubscription (
serviceID VARCHAR(100) NOT NULL,
nodeID VARCHAR(100) NOT NULL,
id VARCHAR(100) NOT NULL,
jid VARCHAR(1024) NOT NULL,
owner VARCHAR(1024) NOT NULL,
state VARCHAR(15) NOT NULL,
deliver INTEGER NOT NULL,
digest INTEGER NOT NULL,
digest_frequency INTEGER NOT NULL,
expire CHAR(15) NULL,
includeBody INTEGER NOT NULL,
showValues VARCHAR(30) NOT NULL,
subscriptionType VARCHAR(10) NOT NULL,
subscriptionDepth INTEGER NOT NULL,
keyword VARCHAR(200) NULL,
CONSTRAINT pubsubSubs_pk PRIMARY KEY (serviceID, nodeID, id, jid)
);
CREATE TABLE pubsubDefaultConf (
serviceID VARCHAR(100) NOT NULL,
leaf INTEGER NOT NULL,
deliverPayloads INTEGER NOT NULL,
maxPayloadSize INTEGER NOT NULL,
persistItems INTEGER NOT NULL,
maxItems INTEGER NOT NULL,
notifyConfigChanges INTEGER NOT NULL,
notifyDelete INTEGER NOT NULL,
notifyRetract INTEGER NOT NULL,
presenceBased INTEGER NOT NULL,
sendItemSubscribe INTEGER NOT NULL,
publisherModel VARCHAR(15) NOT NULL,
subscriptionEnabled INTEGER NOT NULL,
accessModel VARCHAR(10) NOT NULL,
language VARCHAR(255) NULL,
replyPolicy VARCHAR(15) NULL,
associationPolicy VARCHAR(15) NOT NULL,
maxLeafNodes INTEGER NOT NULL,
CONSTRAINT pubsubDefConf_pk PRIMARY KEY (serviceID, leaf)
);
// Finally, insert default table values.
INSERT INTO jiveID (idType, id) VALUES (18, 1);
......
......@@ -190,6 +190,105 @@ CREATE TABLE mucConversationLog (
INDEX mucLog_time_idx (time)
);
# PubSub Tables
CREATE TABLE pubsubNode (
serviceID VARCHAR(100) NOT NULL,
nodeID VARCHAR(100) NOT NULL,
leaf TINYINT NOT NULL,
creationDate CHAR(15) NOT NULL,
modificationDate CHAR(15) NOT NULL,
parent VARCHAR(100) NULL,
deliverPayloads TINYINT NOT NULL,
maxPayloadSize INTEGER NULL,
persistItems TINYINT NULL,
maxItems INTEGER NULL,
notifyConfigChanges TINYINT NOT NULL,
notifyDelete TINYINT NOT NULL,
notifyRetract TINYINT NOT NULL,
presenceBased TINYINT NOT NULL,
sendItemSubscribe TINYINT NOT NULL,
publisherModel VARCHAR(15) NOT NULL,
subscriptionEnabled TINYINT NOT NULL,
configSubscription TINYINT NOT NULL,
contacts VARCHAR(4000) NULL,
rosterGroups VARCHAR(4000) NULL,
accessModel VARCHAR(10) NOT NULL,
payloadType VARCHAR(100) NULL,
bodyXSLT VARCHAR(100) NULL,
dataformXSLT VARCHAR(100) NULL,
creator VARCHAR(1024) NOT NULL,
description VARCHAR(255) NULL,
language VARCHAR(255) NULL,
name VARCHAR(50) NULL,
replyPolicy VARCHAR(15) NULL,
replyRooms VARCHAR(4000) NULL,
replyTo VARCHAR(1024) NULL,
associationPolicy VARCHAR(15) NULL,
associationTrusted VARCHAR(4000) NULL,
maxLeafNodes INTEGER NULL,
PRIMARY KEY (serviceID, nodeID)
);
CREATE TABLE pubsubAffiliation (
serviceID VARCHAR(100) NOT NULL,
nodeID VARCHAR(100) NOT NULL,
jid VARCHAR(1024) NOT NULL,
affiliation VARCHAR(10) NOT NULL,
PRIMARY KEY (serviceID, nodeID, jid(70))
);
CREATE TABLE pubsubItem (
serviceID VARCHAR(100) NOT NULL,
nodeID VARCHAR(100) NOT NULL,
id VARCHAR(100) NOT NULL,
jid VARCHAR(1024) NOT NULL,
creationDate CHAR(15) NOT NULL,
payload TEXT NULL,
PRIMARY KEY (serviceID, nodeID, id)
);
CREATE TABLE pubsubSubscription (
serviceID VARCHAR(100) NOT NULL,
nodeID VARCHAR(100) NOT NULL,
id VARCHAR(100) NOT NULL,
jid VARCHAR(1024) NOT NULL,
owner VARCHAR(1024) NOT NULL,
state VARCHAR(15) NOT NULL,
deliver TINYINT NOT NULL,
digest TINYINT NOT NULL,
digest_frequency TINYINT NOT NULL,
expire CHAR(15) NULL,
includeBody TINYINT NOT NULL,
showValues VARCHAR(30) NOT NULL,
subscriptionType VARCHAR(10) NOT NULL,
subscriptionDepth TINYINT NOT NULL,
keyword VARCHAR(200) NULL,
PRIMARY KEY (serviceID, nodeID, id, jid(70))
);
CREATE TABLE pubsubDefaultConf (
serviceID VARCHAR(100) NOT NULL,
leaf TINYINT NOT NULL,
deliverPayloads TINYINT NOT NULL,
maxPayloadSize INTEGER NOT NULL,
persistItems TINYINT NOT NULL,
maxItems INTEGER NOT NULL,
notifyConfigChanges TINYINT NOT NULL,
notifyDelete TINYINT NOT NULL,
notifyRetract TINYINT NOT NULL,
presenceBased TINYINT NOT NULL,
sendItemSubscribe TINYINT NOT NULL,
publisherModel VARCHAR(15) NOT NULL,
subscriptionEnabled TINYINT NOT NULL,
accessModel VARCHAR(10) NOT NULL,
language VARCHAR(255) NULL,
replyPolicy VARCHAR(15) NULL,
associationPolicy VARCHAR(15) NOT NULL,
maxLeafNodes INTEGER NOT NULL,
PRIMARY KEY (serviceID, leaf)
);
# Finally, insert default table values.
INSERT INTO jiveID (idType, id) VALUES (18, 1);
......
......@@ -196,6 +196,105 @@ CREATE TABLE mucConversationLog (
);
CREATE INDEX mucLog_time_idx ON mucConversationLog (time);
REM // PubSub Tables
CREATE TABLE pubsubNode (
serviceID VARCHAR2(100) NOT NULL,
nodeID VARCHAR2(100) NOT NULL,
leaf INTEGER NOT NULL,
creationDate CHAR(15) NOT NULL,
modificationDate CHAR(15) NOT NULL,
parent VARCHAR2(100) NULL,
deliverPayloads INTEGER NOT NULL,
maxPayloadSize INTEGER NULL,
persistItems INTEGER NULL,
maxItems INTEGER NULL,
notifyConfigChanges INTEGER NOT NULL,
notifyDelete INTEGER NOT NULL,
notifyRetract INTEGER NOT NULL,
presenceBased INTEGER NOT NULL,
sendItemSubscribe INTEGER NOT NULL,
publisherModel VARCHAR2(15) NOT NULL,
subscriptionEnabled INTEGER NOT NULL,
configSubscription INTEGER NOT NULL,
contacts VARCHAR2(4000) NULL,
rosterGroups VARCHAR2(4000) NULL,
accessModel VARCHAR2(10) NOT NULL,
payloadType VARCHAR2(100) NULL,
bodyXSLT VARCHAR2(100) NULL,
dataformXSLT VARCHAR2(100) NULL,
creator VARCHAR2(1024) NOT NULL,
description VARCHAR2(255) NULL,
language VARCHAR2(255) NULL,
name VARCHAR2(50) NULL,
replyPolicy VARCHAR2(15) NULL,
replyRooms VARCHAR2(4000) NULL,
replyTo VARCHAR2(1024) NULL,
associationPolicy VARCHAR2(15) NULL,
associationTrusted VARCHAR2(4000) NULL,
maxLeafNodes INTEGER NULL,
CONSTRAINT pubsubNode_pk PRIMARY KEY (serviceID, nodeID)
);
CREATE TABLE pubsubAffiliation (
serviceID VARCHAR2(100) NOT NULL,
nodeID VARCHAR2(100) NOT NULL,
jid VARCHAR2(1024) NOT NULL,
affiliation VARCHAR2(10) NOT NULL,
CONSTRAINT pubsubAffil_pk PRIMARY KEY (serviceID, nodeID, jid)
);
CREATE TABLE pubsubItem (
serviceID VARCHAR2(100) NOT NULL,
nodeID VARCHAR2(100) NOT NULL,
id VARCHAR2(100) NOT NULL,
jid VARCHAR2(1024) NOT NULL,
creationDate CHAR(15) NOT NULL,
payload VARCHAR(4000) NULL,
CONSTRAINT pubsubItem_pk PRIMARY KEY (serviceID, nodeID, id)
);
CREATE TABLE pubsubSubscription (
serviceID VARCHAR2(100) NOT NULL,
nodeID VARCHAR2(100) NOT NULL,
id VARCHAR2(100) NOT NULL,
jid VARCHAR2(1024) NOT NULL,
owner VARCHAR2(1024) NOT NULL,
state VARCHAR(15) NOT NULL,
deliver INTEGER NOT NULL,
digest INTEGER NOT NULL,
digest_frequency INTEGER NOT NULL,
expire CHAR(15) NULL,
includeBody INTEGER NOT NULL,
showValues VARCHAR(30) NOT NULL,
subscriptionType VARCHAR(10) NOT NULL,
subscriptionDepth INTEGER NOT NULL,
keyword VARCHAR2(200) NULL,
CONSTRAINT pubsubSubs_pk PRIMARY KEY (serviceID, nodeID, id, jid)
);
CREATE TABLE pubsubDefaultConf (
serviceID VARCHAR2(100) NOT NULL,
leaf INTEGER NOT NULL,
deliverPayloads INTEGER NOT NULL,
maxPayloadSize INTEGER NOT NULL,
persistItems INTEGER NOT NULL,
maxItems INTEGER NOT NULL,
notifyConfigChanges INTEGER NOT NULL,
notifyDelete INTEGER NOT NULL,
notifyRetract INTEGER NOT NULL,
presenceBased INTEGER NOT NULL,
sendItemSubscribe INTEGER NOT NULL,
publisherModel VARCHAR2(15) NOT NULL,
subscriptionEnabled INTEGER NOT NULL,
accessModel VARCHAR2(10) NOT NULL,
language VARCHAR2(255) NULL,
replyPolicy VARCHAR2(15) NULL,
associationPolicy VARCHAR2(15) NOT NULL,
maxLeafNodes INTEGER NOT NULL,
CONSTRAINT pubsubDefConf_pk PRIMARY KEY (serviceID, leaf)
);
REM // Finally, insert default table values.
INSERT INTO jiveID (idType, id) VALUES (18, 1);
......
......@@ -205,6 +205,105 @@ CREATE TABLE mucConversationLog (
);
CREATE INDEX mucLog_time_idx ON mucConversationLog (time);
-- PubSub Tables
CREATE TABLE pubsubNode (
serviceID VARCHAR(100) NOT NULL,
nodeID VARCHAR(100) NOT NULL,
leaf INTEGER NOT NULL,
creationDate CHAR(15) NOT NULL,
modificationDate CHAR(15) NOT NULL,
parent VARCHAR(100) NULL,
deliverPayloads INTEGER NOT NULL,
maxPayloadSize INTEGER NULL,
persistItems INTEGER NULL,
maxItems INTEGER NULL,
notifyConfigChanges INTEGER NOT NULL,
notifyDelete INTEGER NOT NULL,
notifyRetract INTEGER NOT NULL,
presenceBased INTEGER NOT NULL,
sendItemSubscribe INTEGER NOT NULL,
publisherModel VARCHAR(15) NOT NULL,
subscriptionEnabled INTEGER NOT NULL,
configSubscription INTEGER NOT NULL,
contacts VARCHAR(4000) NULL,
rosterGroups VARCHAR(4000) NULL,
accessModel VARCHAR(10) NOT NULL,
payloadType VARCHAR(100) NULL,
bodyXSLT VARCHAR(100) NULL,
dataformXSLT VARCHAR(100) NULL,
creator VARCHAR(1024) NOT NULL,
description VARCHAR(255) NULL,
language VARCHAR(255) NULL,
name VARCHAR(50) NULL,
replyPolicy VARCHAR(15) NULL,
replyRooms VARCHAR(4000) NULL,
replyTo VARCHAR(1024) NULL,
associationPolicy VARCHAR(15) NULL,
associationTrusted VARCHAR(4000) NULL,
maxLeafNodes INTEGER NULL,
CONSTRAINT pubsubNode_pk PRIMARY KEY (serviceID, nodeID)
);
CREATE TABLE pubsubAffiliation (
serviceID VARCHAR(100) NOT NULL,
nodeID VARCHAR(100) NOT NULL,
jid VARCHAR(1024) NOT NULL,
affiliation VARCHAR(10) NOT NULL,
CONSTRAINT pubsubAffil_pk PRIMARY KEY (serviceID, nodeID, jid)
);
CREATE TABLE pubsubItem (
serviceID VARCHAR(100) NOT NULL,
nodeID VARCHAR(100) NOT NULL,
id VARCHAR(100) NOT NULL,
jid VARCHAR(1024) NOT NULL,
creationDate CHAR(15) NOT NULL,
payload TEXT NULL,
CONSTRAINT pubsubItem_pk PRIMARY KEY (serviceID, nodeID, id)
);
CREATE TABLE pubsubSubscription (
serviceID VARCHAR(100) NOT NULL,
nodeID VARCHAR(100) NOT NULL,
id VARCHAR(100) NOT NULL,
jid VARCHAR(1024) NOT NULL,
owner VARCHAR(1024) NOT NULL,
state VARCHAR(15) NOT NULL,
deliver INTEGER NOT NULL,
digest INTEGER NOT NULL,
digest_frequency INTEGER NOT NULL,
expire CHAR(15) NULL,
includeBody INTEGER NOT NULL,
showValues VARCHAR(30) NOT NULL,
subscriptionType VARCHAR(10) NOT NULL,
subscriptionDepth INTEGER NOT NULL,
keyword VARCHAR(200) NULL,
CONSTRAINT pubsubSubs_pk PRIMARY KEY (serviceID, nodeID, id, jid)
);
CREATE TABLE pubsubDefaultConf (
serviceID VARCHAR(100) NOT NULL,
leaf INTEGER NOT NULL,
deliverPayloads INTEGER NOT NULL,
maxPayloadSize INTEGER NOT NULL,
persistItems INTEGER NOT NULL,
maxItems INTEGER NOT NULL,
notifyConfigChanges INTEGER NOT NULL,
notifyDelete INTEGER NOT NULL,
notifyRetract INTEGER NOT NULL,
presenceBased INTEGER NOT NULL,
sendItemSubscribe INTEGER NOT NULL,
publisherModel VARCHAR(15) NOT NULL,
subscriptionEnabled INTEGER NOT NULL,
accessModel VARCHAR(10) NOT NULL,
language VARCHAR(255) NULL,
replyPolicy VARCHAR(15) NULL,
associationPolicy VARCHAR(15) NOT NULL,
maxLeafNodes INTEGER NOT NULL,
CONSTRAINT pubsubDefConf_pk PRIMARY KEY (serviceID, leaf)
);
-- Finally, insert default table values.
INSERT INTO jiveID (idType, id) VALUES (18, 1);
......
......@@ -203,6 +203,105 @@ CREATE TABLE mucConversationLog (
);
CREATE INDEX mucLog_time_idx ON mucConversationLog (time);
/* PubSub Tables */
CREATE TABLE pubsubNode (
serviceID NVARCHAR(100) NOT NULL,
nodeID NVARCHAR(100) NOT NULL,
leaf INT NOT NULL,
creationDate CHAR(15) NOT NULL,
modificationDate CHAR(15) NOT NULL,
parent NVARCHAR(100) NULL,
deliverPayloads INT NOT NULL,
maxPayloadSize INT NULL,
persistItems INT NULL,
maxItems INT NULL,
notifyConfigChanges INT NOT NULL,
notifyDelete INT NOT NULL,
notifyRetract INT NOT NULL,
presenceBased INT NOT NULL,
sendItemSubscribe INT NOT NULL,
publisherModel NVARCHAR(15) NOT NULL,
subscriptionEnabled INT NOT NULL,
configSubscription INT NOT NULL,
contacts NVARCHAR(4000) NULL,
rosterGroups NVARCHAR(4000) NULL,
accessModel NVARCHAR(10) NOT NULL,
payloadType NVARCHAR(100) NULL,
bodyXSLT NVARCHAR(100) NULL,
dataformXSLT NVARCHAR(100) NULL,
creator NVARCHAR(1024) NOT NULL,
description NVARCHAR(255) NULL,
language NVARCHAR(255) NULL,
name NVARCHAR(50) NULL,
replyPolicy NVARCHAR(15) NULL,
replyRooms NVARCHAR(4000) NULL,
replyTo NVARCHAR(1024) NULL,
associationPolicy NVARCHAR(15) NULL,
associationTrusted NVARCHAR(4000) NULL,
maxLeafNodes INT NULL,
CONSTRAINT pubsubNode_pk PRIMARY KEY (serviceID, nodeID)
);
CREATE TABLE pubsubAffiliation (
serviceID NVARCHAR(100) NOT NULL,
nodeID NVARCHAR(100) NOT NULL,
jid NVARCHAR(1024) NOT NULL,
affiliation NVARCHAR(10) NOT NULL,
CONSTRAINT pubsubAffil_pk PRIMARY KEY (serviceID, nodeID, jid)
);
CREATE TABLE pubsubItem (
serviceID NVARCHAR(100) NOT NULL,
nodeID NVARCHAR(100) NOT NULL,
id NVARCHAR(100) NOT NULL,
jid NVARCHAR(1024) NOT NULL,
creationDate CHAR(15) NOT NULL,
payload NTEXT NULL,
CONSTRAINT pubsubItem_pk PRIMARY KEY (serviceID, nodeID, id)
);
CREATE TABLE pubsubSubscription (
serviceID NVARCHAR(100) NOT NULL,
nodeID NVARCHAR(100) NOT NULL,
id NVARCHAR(100) NOT NULL,
jid NVARCHAR(1024) NOT NULL,
owner NVARCHAR(1024) NOT NULL,
state NVARCHAR(15) NOT NULL,
deliver INT NOT NULL,
digest INT NOT NULL,
digest_frequency INT NOT NULL,
expire CHAR(15) NULL,
includeBody INT NOT NULL,
showValues NVARCHAR(30) NOT NULL,
subscriptionType NVARCHAR(10) NOT NULL,
subscriptionDepth INT NOT NULL,
keyword NVARCHAR(200) NULL,
CONSTRAINT pubsubSubs_pk PRIMARY KEY (serviceID, nodeID, id, jid)
);
CREATE TABLE pubsubDefaultConf (
serviceID NVARCHAR(100) NOT NULL,
leaf INT NOT NULL,
deliverPayloads INT NOT NULL,
maxPayloadSize INT NOT NULL,
persistItems INT NOT NULL,
maxItems INT NOT NULL,
notifyConfigChanges INT NOT NULL,
notifyDelete INT NOT NULL,
notifyRetract INT NOT NULL,
presenceBased INT NOT NULL,
sendItemSubscribe INT NOT NULL,
publisherModel NVARCHAR(15) NOT NULL,
subscriptionEnabled INT NOT NULL,
accessModel NVARCHAR(10) NOT NULL,
language NVARCHAR(255) NULL,
replyPolicy NVARCHAR(15) NULL,
associationPolicy NVARCHAR(15) NOT NULL,
maxLeafNodes INT NOT NULL,
CONSTRAINT pubsubDefConf_pk PRIMARY KEY (serviceID, leaf)
);
/* Finally, insert default table values. */
INSERT INTO jiveID (idType, id) VALUES (18, 1);
......
......@@ -203,6 +203,105 @@ CREATE TABLE mucConversationLog (
);
CREATE INDEX mucLog_time_idx ON mucConversationLog (time);
/* PubSub Tables */
CREATE TABLE pubsubNode (
serviceID NVARCHAR(100) NOT NULL,
nodeID NVARCHAR(100) NOT NULL,
leaf INT NOT NULL,
creationDate CHAR(15) NOT NULL,
modificationDate CHAR(15) NOT NULL,
parent NVARCHAR(100) NULL,
deliverPayloads INT NOT NULL,
maxPayloadSize INT NULL,
persistItems INT NULL,
maxItems INT NULL,
notifyConfigChanges INT NOT NULL,
notifyDelete INT NOT NULL,
notifyRetract INT NOT NULL,
presenceBased INT NOT NULL,
sendItemSubscribe INT NOT NULL,
publisherModel NVARCHAR(15) NOT NULL,
subscriptionEnabled INT NOT NULL,
configSubscription INT NOT NULL,
contacts NVARCHAR(4000) NULL,
rosterGroups NVARCHAR(4000) NULL,
accessModel NVARCHAR(10) NOT NULL,
payloadType NVARCHAR(100) NULL,
bodyXSLT NVARCHAR(100) NULL,
dataformXSLT NVARCHAR(100) NULL,
creator NVARCHAR(1024) NOT NULL,
description NVARCHAR(255) NULL,
language NVARCHAR(255) NULL,
name NVARCHAR(50) NULL,
replyPolicy NVARCHAR(15) NULL,
replyRooms NVARCHAR(4000) NULL,
replyTo NVARCHAR(1024) NULL,
associationPolicy NVARCHAR(15) NULL,
associationTrusted NVARCHAR(4000) NULL,
maxLeafNodes INT NULL,
CONSTRAINT pubsubNode_pk PRIMARY KEY (serviceID, nodeID)
);
CREATE TABLE pubsubAffiliation (
serviceID NVARCHAR(100) NOT NULL,
nodeID NVARCHAR(100) NOT NULL,
jid NVARCHAR(1024) NOT NULL,
affiliation NVARCHAR(10) NOT NULL,
CONSTRAINT pubsubAffil_pk PRIMARY KEY (serviceID, nodeID, jid)
);
CREATE TABLE pubsubItem (
serviceID NVARCHAR(100) NOT NULL,
nodeID NVARCHAR(100) NOT NULL,
id NVARCHAR(100) NOT NULL,
jid NVARCHAR(1024) NOT NULL,
creationDate CHAR(15) NOT NULL,
payload TEXT NULL,
CONSTRAINT pubsubItem_pk PRIMARY KEY (serviceID, nodeID, id)
);
CREATE TABLE pubsubSubscription (
serviceID NVARCHAR(100) NOT NULL,
nodeID NVARCHAR(100) NOT NULL,
id NVARCHAR(100) NOT NULL,
jid NVARCHAR(1024) NOT NULL,
owner NVARCHAR(1024) NOT NULL,
state NVARCHAR(15) NOT NULL,
deliver INT NOT NULL,
digest INT NOT NULL,
digest_frequency INT NOT NULL,
expire CHAR(15) NULL,
includeBody INT NOT NULL,
showValues NVARCHAR(30) NOT NULL,
subscriptionType NVARCHAR(10) NOT NULL,
subscriptionDepth INT NOT NULL,
keyword NVARCHAR(200) NULL,
CONSTRAINT pubsubSubs_pk PRIMARY KEY (serviceID, nodeID, id, jid)
);
CREATE TABLE pubsubDefaultConf (
serviceID NVARCHAR(100) NOT NULL,
leaf INT NOT NULL,
deliverPayloads INT NOT NULL,
maxPayloadSize INT NOT NULL,
persistItems INT NOT NULL,
maxItems INT NOT NULL,
notifyConfigChanges INT NOT NULL,
notifyDelete INT NOT NULL,
notifyRetract INT NOT NULL,
presenceBased INT NOT NULL,
sendItemSubscribe INT NOT NULL,
publisherModel NVARCHAR(15) NOT NULL,
subscriptionEnabled INT NOT NULL,
accessModel NVARCHAR(10) NOT NULL,
language NVARCHAR(255) NULL,
replyPolicy NVARCHAR(15) NULL,
associationPolicy NVARCHAR(15) NOT NULL,
maxLeafNodes INT NOT NULL,
CONSTRAINT pubsubDefConf_pk PRIMARY KEY (serviceID, leaf)
);
/* Finally, insert default table values. */
INSERT INTO jiveID (idType, id) VALUES (18, 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment