Commit 666437a5 authored by Ryan Graham's avatar Ryan Graham Committed by ryang

fixed jiveVersion

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3241 b35dd754-fafc-0310-a699-88a17e54d16e
parent fb0f4000
-- $RCSfile$ -- $RCSfile$
-- $Revision: 1650 $ -- $Revision: 1650 $
-- $Date: 2005-07-20 00:18:17 -0300 (Wed, 20 Jul 2005) $ -- $Date: 2005-07-20 00:18:17 -0300 (Wed, 20 Jul 2005) $
CREATE TABLE jiveUser ( CREATE TABLE jiveUser (
username VARCHAR(32) NOT NULL, username VARCHAR(32) NOT NULL,
password VARCHAR(32) NOT NULL, password VARCHAR(32) NOT NULL,
name VARCHAR(100), name VARCHAR(100),
email VARCHAR(100), email VARCHAR(100),
creationDate CHAR(15) NOT NULL, creationDate CHAR(15) NOT NULL,
modificationDate CHAR(15) NOT NULL, modificationDate CHAR(15) NOT NULL,
CONSTRAINT jiveUser_pk PRIMARY KEY (username) CONSTRAINT jiveUser_pk PRIMARY KEY (username)
); );
CREATE INDEX jiveUsr_cDate_idx ON jiveUser (creationDate ASC); CREATE INDEX jiveUsr_cDate_idx ON jiveUser (creationDate ASC);
CREATE TABLE jiveUserProp ( CREATE TABLE jiveUserProp (
username VARCHAR(32) NOT NULL, username VARCHAR(32) NOT NULL,
name VARCHAR(100) NOT NULL, name VARCHAR(100) NOT NULL,
propValue VARCHAR(2000) NOT NULL, propValue VARCHAR(2000) NOT NULL,
CONSTRAINT jiveUsrProp_pk PRIMARY KEY (username, name) CONSTRAINT jiveUsrProp_pk PRIMARY KEY (username, name)
); );
CREATE TABLE jivePrivate ( CREATE TABLE jivePrivate (
username VARCHAR(32) NOT NULL, username VARCHAR(32) NOT NULL,
name VARCHAR(100) NOT NULL, name VARCHAR(100) NOT NULL,
namespace VARCHAR(200) NOT NULL, namespace VARCHAR(200) NOT NULL,
value LONG VARCHAR NOT NULL, value LONG VARCHAR NOT NULL,
CONSTRAINT jivePrivate_pk PRIMARY KEY (username, name, namespace) CONSTRAINT jivePrivate_pk PRIMARY KEY (username, name, namespace)
); );
CREATE TABLE jiveOffline ( CREATE TABLE jiveOffline (
username VARCHAR(32) NOT NULL, username VARCHAR(32) NOT NULL,
messageID INTEGER NOT NULL, messageID INTEGER NOT NULL,
creationDate CHAR(15) NOT NULL, creationDate CHAR(15) NOT NULL,
messageSize INTEGER NOT NULL, messageSize INTEGER NOT NULL,
message LONG VARCHAR NOT NULL, message LONG VARCHAR NOT NULL,
CONSTRAINT jiveOffline_pk PRIMARY KEY (username, messageID) CONSTRAINT jiveOffline_pk PRIMARY KEY (username, messageID)
); );
CREATE TABLE jiveRoster ( CREATE TABLE jiveRoster (
rosterID INTEGER NOT NULL, rosterID INTEGER NOT NULL,
username VARCHAR(32) NOT NULL, username VARCHAR(32) NOT NULL,
jid VARCHAR(1000) NOT NULL, jid VARCHAR(1000) NOT NULL,
sub INTEGER NOT NULL, sub INTEGER NOT NULL,
ask INTEGER NOT NULL, ask INTEGER NOT NULL,
recv INTEGER NOT NULL, recv INTEGER NOT NULL,
nick VARCHAR(255), nick VARCHAR(255),
CONSTRAINT jiveRoster_pk PRIMARY KEY (rosterID) CONSTRAINT jiveRoster_pk PRIMARY KEY (rosterID)
); );
CREATE INDEX jiveR_userid_idx ON jiveRoster (username ASC); CREATE INDEX jiveR_userid_idx ON jiveRoster (username ASC);
CREATE TABLE jiveRosterGroups ( CREATE TABLE jiveRosterGroups (
rosterID INTEGER NOT NULL, rosterID INTEGER NOT NULL,
rank INTEGER NOT NULL, rank INTEGER NOT NULL,
groupName VARCHAR(255) NOT NULL, groupName VARCHAR(255) NOT NULL,
CONSTRAINT jiveRoGrps_pk PRIMARY KEY (rosterID, rank) CONSTRAINT jiveRoGrps_pk PRIMARY KEY (rosterID, rank)
); );
CREATE INDEX jiveRoGrps_rid_idx ON jiveRosterGroups (rosterID ASC); CREATE INDEX jiveRoGrps_rid_idx ON jiveRosterGroups (rosterID ASC);
CREATE TABLE jiveVCard ( CREATE TABLE jiveVCard (
username VARCHAR(32) NOT NULL, username VARCHAR(32) NOT NULL,
value LONG VARCHAR NOT NULL, value LONG VARCHAR NOT NULL,
CONSTRAINT jiveVCard_pk PRIMARY KEY (username) CONSTRAINT jiveVCard_pk PRIMARY KEY (username)
); );
CREATE TABLE jiveGroup ( CREATE TABLE jiveGroup (
groupName VARCHAR(50) NOT NULL, groupName VARCHAR(50) NOT NULL,
description VARCHAR(255), description VARCHAR(255),
CONSTRAINT jiveGroup_pk PRIMARY KEY (groupName) CONSTRAINT jiveGroup_pk PRIMARY KEY (groupName)
); );
CREATE TABLE jiveGroupProp ( CREATE TABLE jiveGroupProp (
groupName VARCHAR(50) NOT NULL, groupName VARCHAR(50) NOT NULL,
name VARCHAR(100) NOT NULL, name VARCHAR(100) NOT NULL,
propValue VARCHAR(2000) NOT NULL, propValue VARCHAR(2000) NOT NULL,
CONSTRAINT jiveGrpProp_pk PRIMARY KEY (groupName, name) CONSTRAINT jiveGrpProp_pk PRIMARY KEY (groupName, name)
); );
CREATE TABLE jiveGroupUser ( CREATE TABLE jiveGroupUser (
groupName VARCHAR(50) NOT NULL, groupName VARCHAR(50) NOT NULL,
username VARCHAR(100) NOT NULL, username VARCHAR(100) NOT NULL,
administrator INTEGER NOT NULL, administrator INTEGER NOT NULL,
CONSTRAINT jiveGrpUser PRIMARY KEY (groupName, username, administrator) CONSTRAINT jiveGrpUser PRIMARY KEY (groupName, username, administrator)
); );
CREATE TABLE jiveID ( CREATE TABLE jiveID (
idType INTEGER NOT NULL, idType INTEGER NOT NULL,
id INTEGER NOT NULL, id INTEGER NOT NULL,
CONSTRAINT jiveID_pk PRIMARY KEY (idType) CONSTRAINT jiveID_pk PRIMARY KEY (idType)
); );
CREATE TABLE jiveProperty ( CREATE TABLE jiveProperty (
name VARCHAR(100) NOT NULL, name VARCHAR(100) NOT NULL,
propValue VARCHAR(3000) NOT NULL, propValue VARCHAR(3000) NOT NULL,
CONSTRAINT jiveProperty_pk PRIMARY KEY (name) CONSTRAINT jiveProperty_pk PRIMARY KEY (name)
); );
CREATE TABLE jiveVersion ( CREATE TABLE jiveVersion (
majorVersion INTEGER NOT NULL, majorVersion INTEGER NOT NULL,
minorVersion INTEGER NOT NULL minorVersion INTEGER NOT NULL
); );
CREATE TABLE jiveExtComponentConf ( CREATE TABLE jiveExtComponentConf (
subdomain VARCHAR(255) NOT NULL, subdomain VARCHAR(255) NOT NULL,
secret VARCHAR(255), secret VARCHAR(255),
permission VARCHAR(10) NOT NULL, permission VARCHAR(10) NOT NULL,
CONSTRAINT jiveExtComponentConf_pk PRIMARY KEY (subdomain) CONSTRAINT jiveExtComponentConf_pk PRIMARY KEY (subdomain)
); );
CREATE TABLE jiveRemoteServerConf ( CREATE TABLE jiveRemoteServerConf (
domain VARCHAR(255) NOT NULL, domain VARCHAR(255) NOT NULL,
remotePort INTEGER, remotePort INTEGER,
permission VARCHAR(10) NOT NULL, permission VARCHAR(10) NOT NULL,
CONSTRAINT jiveRemoteServerConf_pk PRIMARY KEY (domain) CONSTRAINT jiveRemoteServerConf_pk PRIMARY KEY (domain)
); );
-- MUC tables -- MUC tables
CREATE TABLE mucRoom ( CREATE TABLE mucRoom (
roomID INTEGER NOT NULL, roomID INTEGER NOT NULL,
creationDate CHAR(15) NOT NULL, creationDate CHAR(15) NOT NULL,
modificationDate CHAR(15) NOT NULL, modificationDate CHAR(15) NOT NULL,
name VARCHAR(50) NOT NULL, name VARCHAR(50) NOT NULL,
naturalName VARCHAR(255) NOT NULL, naturalName VARCHAR(255) NOT NULL,
description VARCHAR(255), description VARCHAR(255),
lockedDate CHAR(15) NOT NULL, lockedDate CHAR(15) NOT NULL,
emptyDate CHAR(15) NULL, emptyDate CHAR(15) NULL,
canChangeSubject INTEGER NOT NULL, canChangeSubject INTEGER NOT NULL,
maxUsers INTEGER NOT NULL, maxUsers INTEGER NOT NULL,
publicRoom INTEGER NOT NULL, publicRoom INTEGER NOT NULL,
moderated INTEGER NOT NULL, moderated INTEGER NOT NULL,
membersOnly INTEGER NOT NULL, membersOnly INTEGER NOT NULL,
canInvite INTEGER NOT NULL, canInvite INTEGER NOT NULL,
password VARCHAR(50) NULL, password VARCHAR(50) NULL,
canDiscoverJID INTEGER NOT NULL, canDiscoverJID INTEGER NOT NULL,
logEnabled INTEGER NOT NULL, logEnabled INTEGER NOT NULL,
subject VARCHAR(100) NULL, subject VARCHAR(100) NULL,
rolesToBroadcast INTEGER NOT NULL, rolesToBroadcast INTEGER NOT NULL,
useReservedNick INTEGER NOT NULL, useReservedNick INTEGER NOT NULL,
canChangeNick INTEGER NOT NULL, canChangeNick INTEGER NOT NULL,
canRegister INTEGER NOT NULL, canRegister INTEGER NOT NULL,
CONSTRAINT mucRoom_pk PRIMARY KEY (name) CONSTRAINT mucRoom_pk PRIMARY KEY (name)
); );
CREATE INDEX mucRoom_roomid_idx ON mucRoom (roomID); CREATE INDEX mucRoom_roomid_idx ON mucRoom (roomID);
CREATE TABLE mucRoomProp ( CREATE TABLE mucRoomProp (
roomID INTEGER NOT NULL, roomID INTEGER NOT NULL,
name VARCHAR(100) NOT NULL, name VARCHAR(100) NOT NULL,
propValue VARCHAR(2000) NOT NULL, propValue VARCHAR(2000) NOT NULL,
CONSTRAINT mucRoomProp_pk PRIMARY KEY (roomID, name) CONSTRAINT mucRoomProp_pk PRIMARY KEY (roomID, name)
); );
CREATE TABLE mucAffiliation ( CREATE TABLE mucAffiliation (
roomID INTEGER NOT NULL, roomID INTEGER NOT NULL,
jid VARCHAR(1000) NOT NULL, jid VARCHAR(1000) NOT NULL,
affiliation INTEGER NOT NULL, affiliation INTEGER NOT NULL,
CONSTRAINT mucAffiliation_pk PRIMARY KEY (roomID, jid) CONSTRAINT mucAffiliation_pk PRIMARY KEY (roomID, jid)
); );
CREATE TABLE mucMember ( CREATE TABLE mucMember (
roomID INTEGER NOT NULL, roomID INTEGER NOT NULL,
jid VARCHAR(1000) NOT NULL, jid VARCHAR(1000) NOT NULL,
nickname VARCHAR(255) NULL, nickname VARCHAR(255) NULL,
firstName VARCHAR(100) NULL, firstName VARCHAR(100) NULL,
lastName VARCHAR(100) NULL, lastName VARCHAR(100) NULL,
url VARCHAR(100) NULL, url VARCHAR(100) NULL,
email VARCHAR(100) NULL, email VARCHAR(100) NULL,
faqentry VARCHAR(100) NULL, faqentry VARCHAR(100) NULL,
CONSTRAINT mucMember_pk PRIMARY KEY (roomID, jid) CONSTRAINT mucMember_pk PRIMARY KEY (roomID, jid)
); );
CREATE TABLE mucConversationLog ( CREATE TABLE mucConversationLog (
roomID INTEGER NOT NULL, roomID INTEGER NOT NULL,
sender VARCHAR(1000) NOT NULL, sender VARCHAR(1000) NOT NULL,
nickname VARCHAR(255) NULL, nickname VARCHAR(255) NULL,
time CHAR(15) NOT NULL, time CHAR(15) NOT NULL,
subject VARCHAR(255) NULL, subject VARCHAR(255) NULL,
body CLOB NULL body CLOB NULL
); );
CREATE INDEX mucLog_time_idx ON mucConversationLog (time); CREATE INDEX mucLog_time_idx ON mucConversationLog (time);
-- Finally, insert default table values -- Finally, insert default table values
INSERT INTO jiveID (idType, id) VALUES (18, 1); INSERT INTO jiveID (idType, id) VALUES (18, 1);
INSERT INTO jiveID (idType, id) VALUES (19, 1); INSERT INTO jiveID (idType, id) VALUES (19, 1);
INSERT INTO jiveID (idType, id) VALUES (23, 1); INSERT INTO jiveID (idType, id) VALUES (23, 1);
INSERT INTO jiveVersion (majorVersion, minorVersion) VALUES (2, 2); INSERT INTO jiveVersion (majorVersion, minorVersion) VALUES (2, 4);
-- Entry for admin user -- Entry for admin user
INSERT INTO jiveUser (username, password, name, email, creationDate, modificationDate) INSERT INTO jiveUser (username, password, name, email, creationDate, modificationDate)
VALUES ('admin', 'admin', 'Administrator', 'admin@example.com', '0', '0'); VALUES ('admin', 'admin', 'Administrator', 'admin@example.com', '0', '0');
\ No newline at end of file
// $RCSfile$ // $RCSfile$
// $Revision: 1650 $ // $Revision: 1650 $
// $Date: 2005-07-20 00:18:17 -0300 (Wed, 20 Jul 2005) $ // $Date: 2005-07-20 00:18:17 -0300 (Wed, 20 Jul 2005) $
CREATE TABLE jiveUser ( CREATE TABLE jiveUser (
username VARCHAR(32) NOT NULL, username VARCHAR(32) NOT NULL,
password VARCHAR(32) NOT NULL, password VARCHAR(32) NOT NULL,
name VARCHAR(100), name VARCHAR(100),
email VARCHAR(100), email VARCHAR(100),
creationDate VARCHAR(15) NOT NULL, creationDate VARCHAR(15) NOT NULL,
modificationDate VARCHAR(15) NOT NULL, modificationDate VARCHAR(15) NOT NULL,
CONSTRAINT jiveUser_pk PRIMARY KEY (username) CONSTRAINT jiveUser_pk PRIMARY KEY (username)
); );
CREATE INDEX jiveUser_cDate_idx ON jiveUser (creationDate); CREATE INDEX jiveUser_cDate_idx ON jiveUser (creationDate);
CREATE TABLE jiveUserProp ( CREATE TABLE jiveUserProp (
username VARCHAR(32) NOT NULL, username VARCHAR(32) NOT NULL,
name VARCHAR(100) NOT NULL, name VARCHAR(100) NOT NULL,
propValue VARCHAR(4000) NOT NULL, propValue VARCHAR(4000) NOT NULL,
CONSTRAINT jiveUserProp_pk PRIMARY KEY (username, name) CONSTRAINT jiveUserProp_pk PRIMARY KEY (username, name)
); );
CREATE TABLE jivePrivate ( CREATE TABLE jivePrivate (
username VARCHAR(32) NOT NULL, username VARCHAR(32) NOT NULL,
name VARCHAR(100) NOT NULL, name VARCHAR(100) NOT NULL,
namespace VARCHAR(200) NOT NULL, namespace VARCHAR(200) NOT NULL,
value LONGVARCHAR NOT NULL, value LONGVARCHAR NOT NULL,
CONSTRAINT jivePrivate_pk PRIMARY KEY (username, name, namespace) CONSTRAINT jivePrivate_pk PRIMARY KEY (username, name, namespace)
); );
CREATE TABLE jiveOffline ( CREATE TABLE jiveOffline (
username VARCHAR(32) NOT NULL, username VARCHAR(32) NOT NULL,
messageID BIGINT NOT NULL, messageID BIGINT NOT NULL,
creationDate VARCHAR(15) NOT NULL, creationDate VARCHAR(15) NOT NULL,
messageSize INTEGER NOT NULL, messageSize INTEGER NOT NULL,
message LONGVARCHAR NOT NULL, message LONGVARCHAR NOT NULL,
CONSTRAINT jiveOffline_pk PRIMARY KEY (username, messageID) CONSTRAINT jiveOffline_pk PRIMARY KEY (username, messageID)
); );
CREATE TABLE jiveRoster ( CREATE TABLE jiveRoster (
rosterID BIGINT NOT NULL, rosterID BIGINT NOT NULL,
username VARCHAR(32) NOT NULL, username VARCHAR(32) NOT NULL,
jid VARCHAR(1024) NOT NULL, jid VARCHAR(1024) NOT NULL,
sub INTEGER NOT NULL, sub INTEGER NOT NULL,
ask INTEGER NOT NULL, ask INTEGER NOT NULL,
recv INTEGER NOT NULL, recv INTEGER NOT NULL,
nick VARCHAR(255), nick VARCHAR(255),
CONSTRAINT jiveRoster_pk PRIMARY KEY (rosterID) CONSTRAINT jiveRoster_pk PRIMARY KEY (rosterID)
); );
CREATE INDEX jiveRoster_username_idx ON jiveRoster (username); CREATE INDEX jiveRoster_username_idx ON jiveRoster (username);
CREATE TABLE jiveRosterGroups ( CREATE TABLE jiveRosterGroups (
rosterID BIGINT NOT NULL, rosterID BIGINT NOT NULL,
rank INTEGER NOT NULL, rank INTEGER NOT NULL,
groupName VARCHAR(255) NOT NULL, groupName VARCHAR(255) NOT NULL,
CONSTRAINT jiveRosterGroups_pk PRIMARY KEY (rosterID, rank) CONSTRAINT jiveRosterGroups_pk PRIMARY KEY (rosterID, rank)
); );
CREATE INDEX jiveRosterGroup_rosterid_idx ON jiveRosterGroups (rosterID); CREATE INDEX jiveRosterGroup_rosterid_idx ON jiveRosterGroups (rosterID);
CREATE TABLE jiveVCard ( CREATE TABLE jiveVCard (
username VARCHAR(32) NOT NULL, username VARCHAR(32) NOT NULL,
value LONGVARCHAR NOT NULL, value LONGVARCHAR NOT NULL,
CONSTRAINT jiveVCard_pk PRIMARY KEY (username) CONSTRAINT jiveVCard_pk PRIMARY KEY (username)
); );
CREATE TABLE jiveGroup ( CREATE TABLE jiveGroup (
groupName VARCHAR(50) NOT NULL, groupName VARCHAR(50) NOT NULL,
description VARCHAR(255), description VARCHAR(255),
CONSTRAINT jiveGroup_pk PRIMARY KEY (groupName) CONSTRAINT jiveGroup_pk PRIMARY KEY (groupName)
); );
CREATE TABLE jiveGroupProp ( CREATE TABLE jiveGroupProp (
groupName VARCHAR(50) NOT NULL, groupName VARCHAR(50) NOT NULL,
name VARCHAR(100) NOT NULL, name VARCHAR(100) NOT NULL,
propValue VARCHAR(4000) NOT NULL, propValue VARCHAR(4000) NOT NULL,
CONSTRAINT jiveGroupProp_pk PRIMARY KEY (groupName, name) CONSTRAINT jiveGroupProp_pk PRIMARY KEY (groupName, name)
); );
CREATE TABLE jiveGroupUser ( CREATE TABLE jiveGroupUser (
groupName VARCHAR(50) NOT NULL, groupName VARCHAR(50) NOT NULL,
username VARCHAR(100) NOT NULL, username VARCHAR(100) NOT NULL,
administrator INTEGER NOT NULL, administrator INTEGER NOT NULL,
CONSTRAINT jiveGroupUser_pk PRIMARY KEY (groupName, username, administrator) CONSTRAINT jiveGroupUser_pk PRIMARY KEY (groupName, username, administrator)
); );
CREATE TABLE jiveID ( CREATE TABLE jiveID (
idType INTEGER NOT NULL, idType INTEGER NOT NULL,
id BIGINT NOT NULL, id BIGINT NOT NULL,
CONSTRAINT jiveID_pk PRIMARY KEY (idType) CONSTRAINT jiveID_pk PRIMARY KEY (idType)
); );
CREATE TABLE jiveProperty ( CREATE TABLE jiveProperty (
name VARCHAR(100) NOT NULL, name VARCHAR(100) NOT NULL,
propValue VARCHAR(4000) NOT NULL, propValue VARCHAR(4000) NOT NULL,
CONSTRAINT jiveProperty_pk PRIMARY KEY (name) CONSTRAINT jiveProperty_pk PRIMARY KEY (name)
); );
CREATE TABLE jiveVersion ( CREATE TABLE jiveVersion (
majorVersion INTEGER NOT NULL, majorVersion INTEGER NOT NULL,
minorVersion INTEGER NOT NULL minorVersion INTEGER NOT NULL
); );
CREATE TABLE jiveExtComponentConf ( CREATE TABLE jiveExtComponentConf (
subdomain VARCHAR(255) NOT NULL, subdomain VARCHAR(255) NOT NULL,
secret VARCHAR(255), secret VARCHAR(255),
permission VARCHAR(10) NOT NULL, permission VARCHAR(10) NOT NULL,
CONSTRAINT jiveExtComponentConf_pk PRIMARY KEY (subdomain) CONSTRAINT jiveExtComponentConf_pk PRIMARY KEY (subdomain)
); );
CREATE TABLE jiveRemoteServerConf ( CREATE TABLE jiveRemoteServerConf (
domain VARCHAR(255) NOT NULL, domain VARCHAR(255) NOT NULL,
remotePort INTEGER, remotePort INTEGER,
permission VARCHAR(10) NOT NULL, permission VARCHAR(10) NOT NULL,
CONSTRAINT jiveRemoteServerConf_pk PRIMARY KEY (domain) CONSTRAINT jiveRemoteServerConf_pk PRIMARY KEY (domain)
); );
// MUC Tables // MUC Tables
CREATE TABLE mucRoom ( CREATE TABLE mucRoom (
roomID BIGINT NOT NULL, roomID BIGINT NOT NULL,
creationDate CHAR(15) NOT NULL, creationDate CHAR(15) NOT NULL,
modificationDate CHAR(15) NOT NULL, modificationDate CHAR(15) NOT NULL,
name VARCHAR(50) NOT NULL, name VARCHAR(50) NOT NULL,
naturalName VARCHAR(255) NOT NULL, naturalName VARCHAR(255) NOT NULL,
description VARCHAR(255), description VARCHAR(255),
lockedDate CHAR(15) NOT NULL, lockedDate CHAR(15) NOT NULL,
emptyDate CHAR(15) NULL, emptyDate CHAR(15) NULL,
canChangeSubject INTEGER NOT NULL, canChangeSubject INTEGER NOT NULL,
maxUsers INTEGER NOT NULL, maxUsers INTEGER NOT NULL,
publicRoom INTEGER NOT NULL, publicRoom INTEGER NOT NULL,
moderated INTEGER NOT NULL, moderated INTEGER NOT NULL,
membersOnly INTEGER NOT NULL, membersOnly INTEGER NOT NULL,
canInvite INTEGER NOT NULL, canInvite INTEGER NOT NULL,
password VARCHAR(50) NULL, password VARCHAR(50) NULL,
canDiscoverJID INTEGER NOT NULL, canDiscoverJID INTEGER NOT NULL,
logEnabled INTEGER NOT NULL, logEnabled INTEGER NOT NULL,
subject VARCHAR(100) NULL, subject VARCHAR(100) NULL,
rolesToBroadcast INTEGER NOT NULL, rolesToBroadcast INTEGER NOT NULL,
useReservedNick INTEGER NOT NULL, useReservedNick INTEGER NOT NULL,
canChangeNick INTEGER NOT NULL, canChangeNick INTEGER NOT NULL,
canRegister INTEGER NOT NULL, canRegister INTEGER NOT NULL,
CONSTRAINT mucRoom_pk PRIMARY KEY (name) CONSTRAINT mucRoom_pk PRIMARY KEY (name)
); );
CREATE INDEX mucRoom_roomid_idx ON mucRoom(roomID); CREATE INDEX mucRoom_roomid_idx ON mucRoom(roomID);
CREATE TABLE mucRoomProp ( CREATE TABLE mucRoomProp (
roomID BIGINT NOT NULL, roomID BIGINT NOT NULL,
name VARCHAR(100) NOT NULL, name VARCHAR(100) NOT NULL,
propValue VARCHAR(4000) NOT NULL, propValue VARCHAR(4000) NOT NULL,
CONSTRAINT mucRoomProp_pk PRIMARY KEY (roomID, name) CONSTRAINT mucRoomProp_pk PRIMARY KEY (roomID, name)
); );
CREATE TABLE mucAffiliation ( CREATE TABLE mucAffiliation (
roomID BIGINT NOT NULL, roomID BIGINT NOT NULL,
jid VARCHAR(1024) NOT NULL, jid VARCHAR(1024) NOT NULL,
affiliation INTEGER NOT NULL, affiliation INTEGER NOT NULL,
CONSTRAINT mucAffiliation_pk PRIMARY KEY (roomID, jid) CONSTRAINT mucAffiliation_pk PRIMARY KEY (roomID, jid)
); );
CREATE TABLE mucMember ( CREATE TABLE mucMember (
roomID BIGINT NOT NULL, roomID BIGINT NOT NULL,
jid VARCHAR(1024) NOT NULL, jid VARCHAR(1024) NOT NULL,
nickname VARCHAR(255) NULL, nickname VARCHAR(255) NULL,
firstName VARCHAR(100) NULL, firstName VARCHAR(100) NULL,
lastName VARCHAR(100) NULL, lastName VARCHAR(100) NULL,
url VARCHAR(100) NULL, url VARCHAR(100) NULL,
email VARCHAR(100) NULL, email VARCHAR(100) NULL,
faqentry VARCHAR(100) NULL, faqentry VARCHAR(100) NULL,
CONSTRAINT mucMember_pk PRIMARY KEY (roomID, jid) CONSTRAINT mucMember_pk PRIMARY KEY (roomID, jid)
); );
CREATE TABLE mucConversationLog ( CREATE TABLE mucConversationLog (
roomID BIGINT NOT NULL, roomID BIGINT NOT NULL,
sender VARCHAR(1024) NOT NULL, sender VARCHAR(1024) NOT NULL,
nickname VARCHAR(255) NULL, nickname VARCHAR(255) NULL,
time CHAR(15) NOT NULL, time CHAR(15) NOT NULL,
subject VARCHAR(255) NULL, subject VARCHAR(255) NULL,
body LONGVARCHAR NULL body LONGVARCHAR NULL
); );
CREATE INDEX mucLog_time_idx ON mucConversationLog (time); CREATE INDEX mucLog_time_idx ON mucConversationLog (time);
// Finally, insert default table values. // Finally, insert default table values.
INSERT INTO jiveID (idType, id) VALUES (18, 1); INSERT INTO jiveID (idType, id) VALUES (18, 1);
INSERT INTO jiveID (idType, id) VALUES (19, 1); INSERT INTO jiveID (idType, id) VALUES (19, 1);
INSERT INTO jiveID (idType, id) VALUES (23, 1); INSERT INTO jiveID (idType, id) VALUES (23, 1);
INSERT INTO jiveVersion (majorVersion, minorVersion) VALUES (2, 2); INSERT INTO jiveVersion (majorVersion, minorVersion) VALUES (2, 4);
// Entry for admin user // Entry for admin user
INSERT INTO jiveUser (username, password, name, email, creationDate, modificationDate) INSERT INTO jiveUser (username, password, name, email, creationDate, modificationDate)
VALUES ('admin', 'admin', 'Administrator', 'admin@example.com', '0', '0'); VALUES ('admin', 'admin', 'Administrator', 'admin@example.com', '0', '0');
\ No newline at end of file
# $RCSfile$ # $RCSfile$
# $Revision: 1650 $ # $Revision: 1650 $
# $Date: 2005-07-20 00:18:17 -0300 (Wed, 20 Jul 2005) $ # $Date: 2005-07-20 00:18:17 -0300 (Wed, 20 Jul 2005) $
CREATE TABLE jiveUser ( CREATE TABLE jiveUser (
username VARCHAR(32) NOT NULL, username VARCHAR(32) NOT NULL,
password VARCHAR(32) NOT NULL, password VARCHAR(32) NOT NULL,
name VARCHAR(100), name VARCHAR(100),
email VARCHAR(100), email VARCHAR(100),
creationDate CHAR(15) NOT NULL, creationDate CHAR(15) NOT NULL,
modificationDate CHAR(15) NOT NULL, modificationDate CHAR(15) NOT NULL,
PRIMARY KEY (username), PRIMARY KEY (username),
INDEX jiveUser_cDate_idx (creationDate) INDEX jiveUser_cDate_idx (creationDate)
); );
CREATE TABLE jiveUserProp ( CREATE TABLE jiveUserProp (
username VARCHAR(32) NOT NULL, username VARCHAR(32) NOT NULL,
name VARCHAR(100) NOT NULL, name VARCHAR(100) NOT NULL,
propValue TEXT NOT NULL, propValue TEXT NOT NULL,
PRIMARY KEY (username, name) PRIMARY KEY (username, name)
); );
CREATE TABLE jiveGroup ( CREATE TABLE jiveGroup (
groupName VARCHAR(50) NOT NULL, groupName VARCHAR(50) NOT NULL,
description VARCHAR(255), description VARCHAR(255),
PRIMARY KEY (groupName) PRIMARY KEY (groupName)
); );
CREATE TABLE jiveGroupProp ( CREATE TABLE jiveGroupProp (
groupName VARCHAR(50) NOT NULL, groupName VARCHAR(50) NOT NULL,
name VARCHAR(100) NOT NULL, name VARCHAR(100) NOT NULL,
propValue TEXT NOT NULL, propValue TEXT NOT NULL,
PRIMARY KEY (groupName, name) PRIMARY KEY (groupName, name)
); );
CREATE TABLE jiveGroupUser ( CREATE TABLE jiveGroupUser (
groupName VARCHAR(50) NOT NULL, groupName VARCHAR(50) NOT NULL,
username VARCHAR(100) NOT NULL, username VARCHAR(100) NOT NULL,
administrator TINYINT NOT NULL, administrator TINYINT NOT NULL,
PRIMARY KEY (groupName, username, administrator) PRIMARY KEY (groupName, username, administrator)
); );
CREATE TABLE jivePrivate ( CREATE TABLE jivePrivate (
username VARCHAR(32) NOT NULL, username VARCHAR(32) NOT NULL,
name VARCHAR(100) NOT NULL, name VARCHAR(100) NOT NULL,
namespace VARCHAR(200) NOT NULL, namespace VARCHAR(200) NOT NULL,
value TEXT NOT NULL, value TEXT NOT NULL,
PRIMARY KEY (username, name, namespace) PRIMARY KEY (username, name, namespace)
); );
CREATE TABLE jiveOffline ( CREATE TABLE jiveOffline (
username VARCHAR(32) NOT NULL, username VARCHAR(32) NOT NULL,
messageID BIGINT NOT NULL, messageID BIGINT NOT NULL,
creationDate CHAR(15) NOT NULL, creationDate CHAR(15) NOT NULL,
messageSize INTEGER NOT NULL, messageSize INTEGER NOT NULL,
message TEXT NOT NULL, message TEXT NOT NULL,
PRIMARY KEY (username, messageID) PRIMARY KEY (username, messageID)
); );
CREATE TABLE jiveRoster ( CREATE TABLE jiveRoster (
rosterID BIGINT NOT NULL, rosterID BIGINT NOT NULL,
username VARCHAR(32) NOT NULL, username VARCHAR(32) NOT NULL,
jid TEXT NOT NULL, jid TEXT NOT NULL,
sub TINYINT NOT NULL, sub TINYINT NOT NULL,
ask TINYINT NOT NULL, ask TINYINT NOT NULL,
recv TINYINT NOT NULL, recv TINYINT NOT NULL,
nick VARCHAR(255), nick VARCHAR(255),
PRIMARY KEY (rosterID), PRIMARY KEY (rosterID),
INDEX jiveRoster_unameid_idx (username) INDEX jiveRoster_unameid_idx (username)
); );
CREATE TABLE jiveRosterGroups ( CREATE TABLE jiveRosterGroups (
rosterID BIGINT NOT NULL, rosterID BIGINT NOT NULL,
rank TINYINT NOT NULL, rank TINYINT NOT NULL,
groupName VARCHAR(255) NOT NULL, groupName VARCHAR(255) NOT NULL,
PRIMARY KEY (rosterID, rank), PRIMARY KEY (rosterID, rank),
INDEX jiveRosterGroup_rosterid_idx (rosterID) INDEX jiveRosterGroup_rosterid_idx (rosterID)
); );
CREATE TABLE jiveVCard ( CREATE TABLE jiveVCard (
username VARCHAR(32) NOT NULL, username VARCHAR(32) NOT NULL,
value TEXT NOT NULL, value TEXT NOT NULL,
PRIMARY KEY (username) PRIMARY KEY (username)
); );
CREATE TABLE jiveID ( CREATE TABLE jiveID (
idType INTEGER NOT NULL, idType INTEGER NOT NULL,
id BIGINT NOT NULL, id BIGINT NOT NULL,
PRIMARY KEY (idType) PRIMARY KEY (idType)
); );
CREATE TABLE jiveProperty ( CREATE TABLE jiveProperty (
name VARCHAR(100) NOT NULL, name VARCHAR(100) NOT NULL,
propValue TEXT NOT NULL, propValue TEXT NOT NULL,
PRIMARY KEY (name) PRIMARY KEY (name)
); );
CREATE TABLE jiveVersion ( CREATE TABLE jiveVersion (
majorVersion INTEGER NOT NULL, majorVersion INTEGER NOT NULL,
minorVersion INTEGER NOT NULL minorVersion INTEGER NOT NULL
); );
CREATE TABLE jiveExtComponentConf ( CREATE TABLE jiveExtComponentConf (
subdomain VARCHAR(255) NOT NULL, subdomain VARCHAR(255) NOT NULL,
secret VARCHAR(255), secret VARCHAR(255),
permission VARCHAR(10) NOT NULL, permission VARCHAR(10) NOT NULL,
PRIMARY KEY (subdomain) PRIMARY KEY (subdomain)
); );
CREATE TABLE jiveRemoteServerConf ( CREATE TABLE jiveRemoteServerConf (
domain VARCHAR(255) NOT NULL, domain VARCHAR(255) NOT NULL,
remotePort INTEGER, remotePort INTEGER,
permission VARCHAR(10) NOT NULL, permission VARCHAR(10) NOT NULL,
PRIMARY KEY (domain) PRIMARY KEY (domain)
); );
# MUC Tables # MUC Tables
CREATE TABLE mucRoom ( CREATE TABLE mucRoom (
roomID BIGINT NOT NULL, roomID BIGINT NOT NULL,
creationDate CHAR(15) NOT NULL, creationDate CHAR(15) NOT NULL,
modificationDate CHAR(15) NOT NULL, modificationDate CHAR(15) NOT NULL,
name VARCHAR(50) NOT NULL, name VARCHAR(50) NOT NULL,
naturalName VARCHAR(255) NOT NULL, naturalName VARCHAR(255) NOT NULL,
description VARCHAR(255), description VARCHAR(255),
lockedDate CHAR(15) NOT NULL, lockedDate CHAR(15) NOT NULL,
emptyDate CHAR(15) NULL, emptyDate CHAR(15) NULL,
canChangeSubject TINYINT NOT NULL, canChangeSubject TINYINT NOT NULL,
maxUsers INTEGER NOT NULL, maxUsers INTEGER NOT NULL,
publicRoom TINYINT NOT NULL, publicRoom TINYINT NOT NULL,
moderated TINYINT NOT NULL, moderated TINYINT NOT NULL,
membersOnly TINYINT NOT NULL, membersOnly TINYINT NOT NULL,
canInvite TINYINT NOT NULL, canInvite TINYINT NOT NULL,
password VARCHAR(50) NULL, password VARCHAR(50) NULL,
canDiscoverJID TINYINT NOT NULL, canDiscoverJID TINYINT NOT NULL,
logEnabled TINYINT NOT NULL, logEnabled TINYINT NOT NULL,
subject VARCHAR(100) NULL, subject VARCHAR(100) NULL,
rolesToBroadcast TINYINT NOT NULL, rolesToBroadcast TINYINT NOT NULL,
useReservedNick TINYINT NOT NULL, useReservedNick TINYINT NOT NULL,
canChangeNick TINYINT NOT NULL, canChangeNick TINYINT NOT NULL,
canRegister TINYINT NOT NULL, canRegister TINYINT NOT NULL,
PRIMARY KEY (name), PRIMARY KEY (name),
INDEX mucRoom_roomid_idx (roomID) INDEX mucRoom_roomid_idx (roomID)
); );
CREATE TABLE mucRoomProp ( CREATE TABLE mucRoomProp (
roomID BIGINT NOT NULL, roomID BIGINT NOT NULL,
name VARCHAR(100) NOT NULL, name VARCHAR(100) NOT NULL,
propValue TEXT NOT NULL, propValue TEXT NOT NULL,
PRIMARY KEY (roomID, name) PRIMARY KEY (roomID, name)
); );
CREATE TABLE mucAffiliation ( CREATE TABLE mucAffiliation (
roomID BIGINT NOT NULL, roomID BIGINT NOT NULL,
jid TEXT NOT NULL, jid TEXT NOT NULL,
affiliation TINYINT NOT NULL, affiliation TINYINT NOT NULL,
PRIMARY KEY (roomID,jid(70)) PRIMARY KEY (roomID,jid(70))
); );
CREATE TABLE mucMember ( CREATE TABLE mucMember (
roomID BIGINT NOT NULL, roomID BIGINT NOT NULL,
jid TEXT NOT NULL, jid TEXT NOT NULL,
nickname VARCHAR(255) NULL, nickname VARCHAR(255) NULL,
firstName VARCHAR(100) NULL, firstName VARCHAR(100) NULL,
lastName VARCHAR(100) NULL, lastName VARCHAR(100) NULL,
url VARCHAR(100) NULL, url VARCHAR(100) NULL,
email VARCHAR(100) NULL, email VARCHAR(100) NULL,
faqentry VARCHAR(100) NULL, faqentry VARCHAR(100) NULL,
PRIMARY KEY (roomID,jid(70)) PRIMARY KEY (roomID,jid(70))
); );
CREATE TABLE mucConversationLog ( CREATE TABLE mucConversationLog (
roomID BIGINT NOT NULL, roomID BIGINT NOT NULL,
sender TEXT NOT NULL, sender TEXT NOT NULL,
nickname VARCHAR(255) NULL, nickname VARCHAR(255) NULL,
time CHAR(15) NOT NULL, time CHAR(15) NOT NULL,
subject VARCHAR(255) NULL, subject VARCHAR(255) NULL,
body TEXT NULL, body TEXT NULL,
INDEX mucLog_time_idx (time) INDEX mucLog_time_idx (time)
); );
# Finally, insert default table values. # Finally, insert default table values.
INSERT INTO jiveID (idType, id) VALUES (18, 1); INSERT INTO jiveID (idType, id) VALUES (18, 1);
INSERT INTO jiveID (idType, id) VALUES (19, 1); INSERT INTO jiveID (idType, id) VALUES (19, 1);
INSERT INTO jiveID (idType, id) VALUES (23, 1); INSERT INTO jiveID (idType, id) VALUES (23, 1);
INSERT INTO jiveVersion (majorVersion, minorVersion) VALUES (2, 2); INSERT INTO jiveVersion (majorVersion, minorVersion) VALUES (2, 4);
# Entry for admin user # Entry for admin user
INSERT INTO jiveUser (username, password, name, email, creationDate, modificationDate) INSERT INTO jiveUser (username, password, name, email, creationDate, modificationDate)
VALUES ('admin', 'admin', 'Administrator', 'admin@example.com', '0', '0'); VALUES ('admin', 'admin', 'Administrator', 'admin@example.com', '0', '0');
\ No newline at end of file
REM // $RCSfile$ REM // $RCSfile$
REM // $Revision: 1650 $ REM // $Revision: 1650 $
REM // $Date: 2005-07-20 00:18:17 -0300 (Wed, 20 Jul 2005) $ REM // $Date: 2005-07-20 00:18:17 -0300 (Wed, 20 Jul 2005) $
CREATE TABLE jiveUser ( CREATE TABLE jiveUser (
username VARCHAR2(32) NOT NULL, username VARCHAR2(32) NOT NULL,
password VARCHAR2(32) NOT NULL, password VARCHAR2(32) NOT NULL,
name VARCHAR2(100), name VARCHAR2(100),
email VARCHAR2(100), email VARCHAR2(100),
creationDate CHAR(15) NOT NULL, creationDate CHAR(15) NOT NULL,
modificationDate CHAR(15) NOT NULL, modificationDate CHAR(15) NOT NULL,
CONSTRAINT jiveUser_pk PRIMARY KEY (username) CONSTRAINT jiveUser_pk PRIMARY KEY (username)
); );
CREATE INDEX jiveUser_cDate_idx ON jiveUser (creationDate ASC); CREATE INDEX jiveUser_cDate_idx ON jiveUser (creationDate ASC);
CREATE TABLE jiveUserProp ( CREATE TABLE jiveUserProp (
username VARCHAR2(32) NOT NULL, username VARCHAR2(32) NOT NULL,
name VARCHAR2(100) NOT NULL, name VARCHAR2(100) NOT NULL,
propValue VARCHAR2(1024) NOT NULL, propValue VARCHAR2(1024) NOT NULL,
CONSTRAINT jiveUserProp_pk PRIMARY KEY (username, name) CONSTRAINT jiveUserProp_pk PRIMARY KEY (username, name)
); );
CREATE TABLE jivePrivate ( CREATE TABLE jivePrivate (
username VARCHAR2(32) NOT NULL, username VARCHAR2(32) NOT NULL,
name VARCHAR2(100) NOT NULL, name VARCHAR2(100) NOT NULL,
namespace VARCHAR2(200) NOT NULL, namespace VARCHAR2(200) NOT NULL,
value LONG NOT NULL, value LONG NOT NULL,
CONSTRAINT jivePrivate_pk PRIMARY KEY (username, name, namespace) CONSTRAINT jivePrivate_pk PRIMARY KEY (username, name, namespace)
); );
CREATE TABLE jiveOffline ( CREATE TABLE jiveOffline (
username VARCHAR2(32) NOT NULL, username VARCHAR2(32) NOT NULL,
messageID INTEGER NOT NULL, messageID INTEGER NOT NULL,
creationDate CHAR(15) NOT NULL, creationDate CHAR(15) NOT NULL,
messageSize INTEGER NOT NULL, messageSize INTEGER NOT NULL,
message LONG NOT NULL, message LONG NOT NULL,
CONSTRAINT jiveOffline_pk PRIMARY KEY (username, messageID) CONSTRAINT jiveOffline_pk PRIMARY KEY (username, messageID)
); );
CREATE TABLE jiveRoster ( CREATE TABLE jiveRoster (
rosterID INTEGER NOT NULL, rosterID INTEGER NOT NULL,
username VARCHAR2(32) NOT NULL, username VARCHAR2(32) NOT NULL,
jid VARCHAR2(1024) NOT NULL, jid VARCHAR2(1024) NOT NULL,
sub INTEGER NOT NULL, sub INTEGER NOT NULL,
ask INTEGER NOT NULL, ask INTEGER NOT NULL,
recv INTEGER NOT NULL, recv INTEGER NOT NULL,
nick VARCHAR2(255), nick VARCHAR2(255),
CONSTRAINT jiveRoster_pk PRIMARY KEY (rosterID) CONSTRAINT jiveRoster_pk PRIMARY KEY (rosterID)
); );
CREATE INDEX jiveRoster_username_idx ON jiveRoster (username ASC); CREATE INDEX jiveRoster_username_idx ON jiveRoster (username ASC);
CREATE TABLE jiveRosterGroups ( CREATE TABLE jiveRosterGroups (
rosterID INTEGER NOT NULL, rosterID INTEGER NOT NULL,
rank INTEGER NOT NULL, rank INTEGER NOT NULL,
groupName VARCHAR2(255) NOT NULL, groupName VARCHAR2(255) NOT NULL,
CONSTRAINT jiveRosterGroups_pk PRIMARY KEY (rosterID, rank) CONSTRAINT jiveRosterGroups_pk PRIMARY KEY (rosterID, rank)
); );
CREATE INDEX jiveRosterGroup_rosterid_idx ON jiveRosterGroups (rosterID ASC); CREATE INDEX jiveRosterGroup_rosterid_idx ON jiveRosterGroups (rosterID ASC);
ALTER TABLE jiveRosterGroups ADD CONSTRAINT jiveRosterGroups_rosterID_fk FOREIGN KEY (rosterID) REFERENCES jiveRoster INITIALLY DEFERRED DEFERRABLE; ALTER TABLE jiveRosterGroups ADD CONSTRAINT jiveRosterGroups_rosterID_fk FOREIGN KEY (rosterID) REFERENCES jiveRoster INITIALLY DEFERRED DEFERRABLE;
CREATE TABLE jiveVCard ( CREATE TABLE jiveVCard (
username VARCHAR2(32) NOT NULL, username VARCHAR2(32) NOT NULL,
value LONG NOT NULL, value LONG NOT NULL,
CONSTRAINT JiveVCard_pk PRIMARY KEY (username) CONSTRAINT JiveVCard_pk PRIMARY KEY (username)
); );
CREATE TABLE jiveGroup ( CREATE TABLE jiveGroup (
groupName VARCHAR2(50) NOT NULL, groupName VARCHAR2(50) NOT NULL,
description VARCHAR2(255), description VARCHAR2(255),
CONSTRAINT jiveGroup_pk PRIMARY KEY (groupName) CONSTRAINT jiveGroup_pk PRIMARY KEY (groupName)
); );
CREATE TABLE jiveGroupProp ( CREATE TABLE jiveGroupProp (
groupName VARCHAR(50) NOT NULL, groupName VARCHAR(50) NOT NULL,
name VARCHAR2(100) NOT NULL, name VARCHAR2(100) NOT NULL,
propValue VARCHAR2(4000) NOT NULL, propValue VARCHAR2(4000) NOT NULL,
CONSTRAINT jiveGroupProp_pk PRIMARY KEY (groupName, name) CONSTRAINT jiveGroupProp_pk PRIMARY KEY (groupName, name)
); );
CREATE TABLE jiveGroupUser ( CREATE TABLE jiveGroupUser (
groupName VARCHAR(50) NOT NULL, groupName VARCHAR(50) NOT NULL,
username VARCHAR2(100) NOT NULL, username VARCHAR2(100) NOT NULL,
administrator INTEGER NOT NULL, administrator INTEGER NOT NULL,
CONSTRAINT jiveGroupUser PRIMARY KEY (groupName, username, administrator) CONSTRAINT jiveGroupUser PRIMARY KEY (groupName, username, administrator)
); );
CREATE TABLE jiveID ( CREATE TABLE jiveID (
idType INTEGER NOT NULL, idType INTEGER NOT NULL,
id INTEGER NOT NULL, id INTEGER NOT NULL,
CONSTRAINT jiveID_pk PRIMARY KEY (idType) CONSTRAINT jiveID_pk PRIMARY KEY (idType)
); );
CREATE TABLE jiveProperty ( CREATE TABLE jiveProperty (
name VARCHAR2(100) NOT NULL, name VARCHAR2(100) NOT NULL,
propValue VARCHAR2(4000) NOT NULL, propValue VARCHAR2(4000) NOT NULL,
CONSTRAINT jiveProperty_pk PRIMARY KEY (name) CONSTRAINT jiveProperty_pk PRIMARY KEY (name)
); );
CREATE TABLE jiveVersion ( CREATE TABLE jiveVersion (
majorVersion INTEGER NOT NULL, majorVersion INTEGER NOT NULL,
minorVersion INTEGER NOT NULL minorVersion INTEGER NOT NULL
); );
CREATE TABLE jiveExtComponentConf ( CREATE TABLE jiveExtComponentConf (
subdomain VARCHAR2(255) NOT NULL, subdomain VARCHAR2(255) NOT NULL,
secret VARCHAR2(255), secret VARCHAR2(255),
permission VARCHAR2(10) NOT NULL, permission VARCHAR2(10) NOT NULL,
CONSTRAINT jiveExtComponentConf_pk PRIMARY KEY (subdomain) CONSTRAINT jiveExtComponentConf_pk PRIMARY KEY (subdomain)
); );
CREATE TABLE jiveRemoteServerConf ( CREATE TABLE jiveRemoteServerConf (
domain VARCHAR2(255) NOT NULL, domain VARCHAR2(255) NOT NULL,
remotePort INTEGER, remotePort INTEGER,
permission VARCHAR2(10) NOT NULL, permission VARCHAR2(10) NOT NULL,
CONSTRAINT jiveRemoteServerConf_pk PRIMARY KEY (domain) CONSTRAINT jiveRemoteServerConf_pk PRIMARY KEY (domain)
); );
REM // MUC Tables REM // MUC Tables
CREATE TABLE mucRoom( CREATE TABLE mucRoom(
roomID INT NOT NULL, roomID INT NOT NULL,
creationDate CHAR(15) NOT NULL, creationDate CHAR(15) NOT NULL,
modificationDate CHAR(15) NOT NULL, modificationDate CHAR(15) NOT NULL,
name VARCHAR2(50) NOT NULL, name VARCHAR2(50) NOT NULL,
naturalName VARCHAR2(255) NOT NULL, naturalName VARCHAR2(255) NOT NULL,
description VARCHAR2(255), description VARCHAR2(255),
lockedDate CHAR(15) NOT NULL, lockedDate CHAR(15) NOT NULL,
emptyDate CHAR(15) NULL, emptyDate CHAR(15) NULL,
canChangeSubject INTEGER NOT NULL, canChangeSubject INTEGER NOT NULL,
maxUsers INTEGER NOT NULL, maxUsers INTEGER NOT NULL,
publicRoom INTEGER NOT NULL, publicRoom INTEGER NOT NULL,
moderated INTEGER NOT NULL, moderated INTEGER NOT NULL,
membersOnly INTEGER NOT NULL, membersOnly INTEGER NOT NULL,
canInvite INTEGER NOT NULL, canInvite INTEGER NOT NULL,
password VARCHAR2(50) NULL, password VARCHAR2(50) NULL,
canDiscoverJID INTEGER NOT NULL, canDiscoverJID INTEGER NOT NULL,
logEnabled INTEGER NOT NULL, logEnabled INTEGER NOT NULL,
subject VARCHAR2(100) NULL, subject VARCHAR2(100) NULL,
rolesToBroadcast INTEGER NOT NULL, rolesToBroadcast INTEGER NOT NULL,
useReservedNick INTEGER NOT NULL, useReservedNick INTEGER NOT NULL,
canChangeNick INTEGER NOT NULL, canChangeNick INTEGER NOT NULL,
canRegister INTEGER NOT NULL, canRegister INTEGER NOT NULL,
CONSTRAINT mucRoom_pk PRIMARY KEY (name) CONSTRAINT mucRoom_pk PRIMARY KEY (name)
); );
CREATE INDEX mucRoom_roomid_idx ON mucRoom (roomID); CREATE INDEX mucRoom_roomid_idx ON mucRoom (roomID);
CREATE TABLE mucRoomProp ( CREATE TABLE mucRoomProp (
roomID INT NOT NULL, roomID INT NOT NULL,
name VARCHAR2(100) NOT NULL, name VARCHAR2(100) NOT NULL,
propValue VARCHAR2(1024) NOT NULL, propValue VARCHAR2(1024) NOT NULL,
CONSTRAINT mucRoomProp_pk PRIMARY KEY (roomID, name) CONSTRAINT mucRoomProp_pk PRIMARY KEY (roomID, name)
); );
CREATE TABLE mucAffiliation ( CREATE TABLE mucAffiliation (
roomID INT NOT NULL, roomID INT NOT NULL,
jid VARCHAR2(1024) NOT NULL, jid VARCHAR2(1024) NOT NULL,
affiliation INTEGER NOT NULL, affiliation INTEGER NOT NULL,
CONSTRAINT mucAffiliation_pk PRIMARY KEY (roomID, jid) CONSTRAINT mucAffiliation_pk PRIMARY KEY (roomID, jid)
); );
CREATE TABLE mucMember ( CREATE TABLE mucMember (
roomID INT NOT NULL, roomID INT NOT NULL,
jid VARCHAR2(1024) NOT NULL, jid VARCHAR2(1024) NOT NULL,
nickname VARCHAR2(255) NULL, nickname VARCHAR2(255) NULL,
firstName VARCHAR2(100) NULL, firstName VARCHAR2(100) NULL,
lastName VARCHAR2(100) NULL, lastName VARCHAR2(100) NULL,
url VARCHAR2(100) NULL, url VARCHAR2(100) NULL,
email VARCHAR2(100) NULL, email VARCHAR2(100) NULL,
faqentry VARCHAR2(100) NULL, faqentry VARCHAR2(100) NULL,
CONSTRAINT mucMember_pk PRIMARY KEY (roomID, jid) CONSTRAINT mucMember_pk PRIMARY KEY (roomID, jid)
); );
CREATE TABLE mucConversationLog ( CREATE TABLE mucConversationLog (
roomID INT NOT NULL, roomID INT NOT NULL,
sender VARCHAR2(1024) NOT NULL, sender VARCHAR2(1024) NOT NULL,
nickname VARCHAR2(255) NULL, nickname VARCHAR2(255) NULL,
time CHAR(15) NOT NULL, time CHAR(15) NOT NULL,
subject VARCHAR2(255) NULL, subject VARCHAR2(255) NULL,
body VARCHAR2(4000) NULL body VARCHAR2(4000) NULL
); );
CREATE INDEX mucLog_time_idx ON mucConversationLog (time); CREATE INDEX mucLog_time_idx ON mucConversationLog (time);
REM // Finally, insert default table values. REM // Finally, insert default table values.
INSERT INTO jiveID (idType, id) VALUES (18, 1); INSERT INTO jiveID (idType, id) VALUES (18, 1);
INSERT INTO jiveID (idType, id) VALUES (19, 1); INSERT INTO jiveID (idType, id) VALUES (19, 1);
INSERT INTO jiveID (idType, id) VALUES (23, 1); INSERT INTO jiveID (idType, id) VALUES (23, 1);
INSERT INTO jiveVersion (majorVersion, minorVersion) VALUES (2, 2); INSERT INTO jiveVersion (majorVersion, minorVersion) VALUES (2, 4);
REM // Entry for admin user REM // Entry for admin user
INSERT INTO jiveUser (username, password, name, email, creationDate, modificationDate) INSERT INTO jiveUser (username, password, name, email, creationDate, modificationDate)
VALUES ('admin', 'admin', 'Administrator', 'admin@example.com', '0', '0'); VALUES ('admin', 'admin', 'Administrator', 'admin@example.com', '0', '0');
\ No newline at end of file
-- $RCSfile$ -- $RCSfile$
-- $Revision: 1650 $ -- $Revision: 1650 $
-- $Date: 2005-07-20 00:18:17 -0300 (Wed, 20 Jul 2005) $ -- $Date: 2005-07-20 00:18:17 -0300 (Wed, 20 Jul 2005) $
-- Note: This schema has only been tested on PostgreSQL 7.3.2. -- Note: This schema has only been tested on PostgreSQL 7.3.2.
CREATE TABLE jiveUser ( CREATE TABLE jiveUser (
username VARCHAR(32) NOT NULL, username VARCHAR(32) NOT NULL,
password VARCHAR(32) NOT NULL, password VARCHAR(32) NOT NULL,
name VARCHAR(100), name VARCHAR(100),
email VARCHAR(100), email VARCHAR(100),
creationDate CHAR(15) NOT NULL, creationDate CHAR(15) NOT NULL,
modificationDate CHAR(15) NOT NULL, modificationDate CHAR(15) NOT NULL,
CONSTRAINT jiveUser_pk PRIMARY KEY (username) CONSTRAINT jiveUser_pk PRIMARY KEY (username)
); );
CREATE INDEX jiveUser_cDate_idx ON jiveUser (creationDate); CREATE INDEX jiveUser_cDate_idx ON jiveUser (creationDate);
CREATE TABLE jiveUserProp ( CREATE TABLE jiveUserProp (
username VARCHAR(32) NOT NULL, username VARCHAR(32) NOT NULL,
name VARCHAR(100) NOT NULL, name VARCHAR(100) NOT NULL,
propValue TEXT NOT NULL, propValue TEXT NOT NULL,
CONSTRAINT jiveUserProp_pk PRIMARY KEY (username, name) CONSTRAINT jiveUserProp_pk PRIMARY KEY (username, name)
); );
CREATE TABLE jivePrivate ( CREATE TABLE jivePrivate (
username VARCHAR(32) NOT NULL, username VARCHAR(32) NOT NULL,
name VARCHAR(100) NOT NULL, name VARCHAR(100) NOT NULL,
namespace VARCHAR(200) NOT NULL, namespace VARCHAR(200) NOT NULL,
value TEXT NOT NULL, value TEXT NOT NULL,
CONSTRAINT jivePrivate_pk PRIMARY KEY (username, name, namespace) CONSTRAINT jivePrivate_pk PRIMARY KEY (username, name, namespace)
); );
CREATE TABLE jiveOffline ( CREATE TABLE jiveOffline (
username VARCHAR(32) NOT NULL, username VARCHAR(32) NOT NULL,
messageID INTEGER NOT NULL, messageID INTEGER NOT NULL,
creationDate CHAR(15) NOT NULL, creationDate CHAR(15) NOT NULL,
messageSize INTEGER NOT NULL, messageSize INTEGER NOT NULL,
message TEXT NOT NULL, message TEXT NOT NULL,
CONSTRAINT jiveOffline_pk PRIMARY KEY (username, messageID) CONSTRAINT jiveOffline_pk PRIMARY KEY (username, messageID)
); );
CREATE TABLE jiveRoster ( CREATE TABLE jiveRoster (
rosterID INTEGER NOT NULL, rosterID INTEGER NOT NULL,
username VARCHAR(32) NOT NULL, username VARCHAR(32) NOT NULL,
jid VARCHAR(1024) NOT NULL, jid VARCHAR(1024) NOT NULL,
sub INTEGER NOT NULL, sub INTEGER NOT NULL,
ask INTEGER NOT NULL, ask INTEGER NOT NULL,
recv INTEGER NOT NULL, recv INTEGER NOT NULL,
nick VARCHAR(255), nick VARCHAR(255),
CONSTRAINT jiveRoster_pk PRIMARY KEY (rosterID) CONSTRAINT jiveRoster_pk PRIMARY KEY (rosterID)
); );
CREATE INDEX jiveRoster_username_idx ON jiveRoster (username); CREATE INDEX jiveRoster_username_idx ON jiveRoster (username);
CREATE TABLE jiveRosterGroups ( CREATE TABLE jiveRosterGroups (
rosterID INTEGER NOT NULL, rosterID INTEGER NOT NULL,
rank INTEGER NOT NULL, rank INTEGER NOT NULL,
groupName VARCHAR(255) NOT NULL, groupName VARCHAR(255) NOT NULL,
CONSTRAINT jiveRosterGroups_pk PRIMARY KEY (rosterID, rank) CONSTRAINT jiveRosterGroups_pk PRIMARY KEY (rosterID, rank)
); );
CREATE INDEX jiveRosterGroups_rosterID_idx ON jiveRosterGroups (rosterID); CREATE INDEX jiveRosterGroups_rosterID_idx ON jiveRosterGroups (rosterID);
ALTER TABLE jiveRosterGroups ADD CONSTRAINT jiveRosterGroups_rosterID_fk FOREIGN KEY (rosterID) REFERENCES jiveRoster INITIALLY DEFERRED DEFERRABLE; ALTER TABLE jiveRosterGroups ADD CONSTRAINT jiveRosterGroups_rosterID_fk FOREIGN KEY (rosterID) REFERENCES jiveRoster INITIALLY DEFERRED DEFERRABLE;
CREATE TABLE jiveVCard ( CREATE TABLE jiveVCard (
username VARCHAR(32) NOT NULL, username VARCHAR(32) NOT NULL,
value TEXT NOT NULL, value TEXT NOT NULL,
CONSTRAINT jiveVCard_pk PRIMARY KEY (username) CONSTRAINT jiveVCard_pk PRIMARY KEY (username)
); );
CREATE TABLE jiveGroup ( CREATE TABLE jiveGroup (
groupName VARCHAR(50) NOT NULL, groupName VARCHAR(50) NOT NULL,
description VARCHAR(255), description VARCHAR(255),
CONSTRAINT jiveGroup_pk PRIMARY KEY (groupName) CONSTRAINT jiveGroup_pk PRIMARY KEY (groupName)
); );
CREATE TABLE jiveGroupProp ( CREATE TABLE jiveGroupProp (
groupName VARCHAR(50) NOT NULL, groupName VARCHAR(50) NOT NULL,
name VARCHAR(100) NOT NULL, name VARCHAR(100) NOT NULL,
propValue TEXT NOT NULL, propValue TEXT NOT NULL,
CONSTRAINT jiveGroupProp_pk PRIMARY KEY (groupName, name) CONSTRAINT jiveGroupProp_pk PRIMARY KEY (groupName, name)
); );
CREATE TABLE jiveGroupUser ( CREATE TABLE jiveGroupUser (
groupName VARCHAR(50) NOT NULL, groupName VARCHAR(50) NOT NULL,
username VARCHAR(100) NOT NULL, username VARCHAR(100) NOT NULL,
administrator INTEGER NOT NULL, administrator INTEGER NOT NULL,
CONSTRAINT jiveGroupUser_pk PRIMARY KEY (groupName, username, administrator) CONSTRAINT jiveGroupUser_pk PRIMARY KEY (groupName, username, administrator)
); );
CREATE TABLE jiveID ( CREATE TABLE jiveID (
idType INTEGER NOT NULL, idType INTEGER NOT NULL,
id INTEGER NOT NULL, id INTEGER NOT NULL,
CONSTRAINT jiveID_pk PRIMARY KEY (idType) CONSTRAINT jiveID_pk PRIMARY KEY (idType)
); );
CREATE TABLE jiveProperty ( CREATE TABLE jiveProperty (
name VARCHAR(100) NOT NULL, name VARCHAR(100) NOT NULL,
propValue VARCHAR(4000) NOT NULL, propValue VARCHAR(4000) NOT NULL,
CONSTRAINT jiveProperty_pk PRIMARY KEY (name) CONSTRAINT jiveProperty_pk PRIMARY KEY (name)
); );
CREATE TABLE jiveVersion ( CREATE TABLE jiveVersion (
majorVersion INTEGER NOT NULL, majorVersion INTEGER NOT NULL,
minorVersion INTEGER NOT NULL minorVersion INTEGER NOT NULL
); );
CREATE TABLE jiveExtComponentConf ( CREATE TABLE jiveExtComponentConf (
subdomain VARCHAR(255) NOT NULL, subdomain VARCHAR(255) NOT NULL,
secret VARCHAR(255), secret VARCHAR(255),
permission VARCHAR(10) NOT NULL, permission VARCHAR(10) NOT NULL,
CONSTRAINT jiveExtComponentConf_pk PRIMARY KEY (subdomain) CONSTRAINT jiveExtComponentConf_pk PRIMARY KEY (subdomain)
); );
CREATE TABLE jiveRemoteServerConf ( CREATE TABLE jiveRemoteServerConf (
domain VARCHAR(255) NOT NULL, domain VARCHAR(255) NOT NULL,
remotePort INTEGER, remotePort INTEGER,
permission VARCHAR(10) NOT NULL, permission VARCHAR(10) NOT NULL,
CONSTRAINT jiveRemoteServerConf_pk PRIMARY KEY (domain) CONSTRAINT jiveRemoteServerConf_pk PRIMARY KEY (domain)
); );
-- MUC Tables -- MUC Tables
CREATE TABLE mucRoom ( CREATE TABLE mucRoom (
roomID INTEGER NOT NULL, roomID INTEGER NOT NULL,
creationDate CHAR(15) NOT NULL, creationDate CHAR(15) NOT NULL,
modificationDate CHAR(15) NOT NULL, modificationDate CHAR(15) NOT NULL,
name VARCHAR(50) NOT NULL, name VARCHAR(50) NOT NULL,
naturalName VARCHAR(255) NOT NULL, naturalName VARCHAR(255) NOT NULL,
description VARCHAR(255), description VARCHAR(255),
lockedDate CHAR(15) NOT NULL, lockedDate CHAR(15) NOT NULL,
emptyDate CHAR(15) NULL, emptyDate CHAR(15) NULL,
canChangeSubject INTEGER NOT NULL, canChangeSubject INTEGER NOT NULL,
maxUsers INTEGER NOT NULL, maxUsers INTEGER NOT NULL,
publicRoom INTEGER NOT NULL, publicRoom INTEGER NOT NULL,
moderated INTEGER NOT NULL, moderated INTEGER NOT NULL,
membersOnly INTEGER NOT NULL, membersOnly INTEGER NOT NULL,
canInvite INTEGER NOT NULL, canInvite INTEGER NOT NULL,
password VARCHAR(50) NULL, password VARCHAR(50) NULL,
canDiscoverJID INTEGER NOT NULL, canDiscoverJID INTEGER NOT NULL,
logEnabled INTEGER NOT NULL, logEnabled INTEGER NOT NULL,
subject VARCHAR(100) NULL, subject VARCHAR(100) NULL,
rolesToBroadcast INTEGER NOT NULL, rolesToBroadcast INTEGER NOT NULL,
useReservedNick INTEGER NOT NULL, useReservedNick INTEGER NOT NULL,
canChangeNick INTEGER NOT NULL, canChangeNick INTEGER NOT NULL,
canRegister INTEGER NOT NULL, canRegister INTEGER NOT NULL,
CONSTRAINT mucRoom__pk PRIMARY KEY (name) CONSTRAINT mucRoom__pk PRIMARY KEY (name)
); );
CREATE INDEX mucRoom_roomID_idx ON mucRoom(roomID); CREATE INDEX mucRoom_roomID_idx ON mucRoom(roomID);
CREATE TABLE mucRoomProp ( CREATE TABLE mucRoomProp (
roomID INTEGER NOT NULL, roomID INTEGER NOT NULL,
name VARCHAR(100) NOT NULL, name VARCHAR(100) NOT NULL,
propValue TEXT NOT NULL, propValue TEXT NOT NULL,
CONSTRAINT mucRoomProp_pk PRIMARY KEY (roomID, name) CONSTRAINT mucRoomProp_pk PRIMARY KEY (roomID, name)
); );
CREATE TABLE mucAffiliation ( CREATE TABLE mucAffiliation (
roomID INTEGER NOT NULL, roomID INTEGER NOT NULL,
jid VARCHAR(1024) NOT NULL, jid VARCHAR(1024) NOT NULL,
affiliation INTEGER NOT NULL, affiliation INTEGER NOT NULL,
CONSTRAINT mucAffiliation__pk PRIMARY KEY (roomID,jid) CONSTRAINT mucAffiliation__pk PRIMARY KEY (roomID,jid)
); );
CREATE TABLE mucMember ( CREATE TABLE mucMember (
roomID INTEGER NOT NULL, roomID INTEGER NOT NULL,
jid VARCHAR(1024) NOT NULL, jid VARCHAR(1024) NOT NULL,
nickname VARCHAR(255) NULL, nickname VARCHAR(255) NULL,
firstName VARCHAR(100) NULL, firstName VARCHAR(100) NULL,
lastName VARCHAR(100) NULL, lastName VARCHAR(100) NULL,
url VARCHAR(100) NULL, url VARCHAR(100) NULL,
email VARCHAR(100) NULL, email VARCHAR(100) NULL,
faqentry VARCHAR(100) NULL, faqentry VARCHAR(100) NULL,
CONSTRAINT mucMember__pk PRIMARY KEY (roomID,jid) CONSTRAINT mucMember__pk PRIMARY KEY (roomID,jid)
); );
CREATE TABLE mucConversationLog ( CREATE TABLE mucConversationLog (
roomID INTEGER NOT NULL, roomID INTEGER NOT NULL,
sender VARCHAR(1024) NOT NULL, sender VARCHAR(1024) NOT NULL,
nickname VARCHAR(255) NULL, nickname VARCHAR(255) NULL,
time CHAR(15) NOT NULL, time CHAR(15) NOT NULL,
subject VARCHAR(255) NULL, subject VARCHAR(255) NULL,
body TEXT NULL body TEXT NULL
); );
CREATE INDEX mucLog_time_idx ON mucConversationLog (time); CREATE INDEX mucLog_time_idx ON mucConversationLog (time);
-- Finally, insert default table values. -- Finally, insert default table values.
INSERT INTO jiveID (idType, id) VALUES (18, 1); INSERT INTO jiveID (idType, id) VALUES (18, 1);
INSERT INTO jiveID (idType, id) VALUES (19, 1); INSERT INTO jiveID (idType, id) VALUES (19, 1);
INSERT INTO jiveID (idType, id) VALUES (23, 1); INSERT INTO jiveID (idType, id) VALUES (23, 1);
INSERT INTO jiveVersion (majorVersion, minorVersion) VALUES (2, 2); INSERT INTO jiveVersion (majorVersion, minorVersion) VALUES (2, 4);
-- Entry for admin user -- Entry for admin user
INSERT INTO jiveUser (username, password, name, email, creationDate, modificationDate) INSERT INTO jiveUser (username, password, name, email, creationDate, modificationDate)
VALUES ('admin', 'admin', 'Administrator', 'admin@example.com', '0', '0'); VALUES ('admin', 'admin', 'Administrator', 'admin@example.com', '0', '0');
/* $RCSfile$ */ /* $RCSfile$ */
/* $Revision: 1650 $ */ /* $Revision: 1650 $ */
/* $Date: 2005-07-20 00:18:17 -0300 (Wed, 20 Jul 2005) $ */ /* $Date: 2005-07-20 00:18:17 -0300 (Wed, 20 Jul 2005) $ */
CREATE TABLE jiveUser ( CREATE TABLE jiveUser (
username NVARCHAR(32) NOT NULL, username NVARCHAR(32) NOT NULL,
password NVARCHAR(32) NOT NULL, password NVARCHAR(32) NOT NULL,
name NVARCHAR(100), name NVARCHAR(100),
email VARCHAR(100), email VARCHAR(100),
creationDate CHAR(15) NOT NULL, creationDate CHAR(15) NOT NULL,
modificationDate CHAR(15) NOT NULL, modificationDate CHAR(15) NOT NULL,
CONSTRAINT jiveUser_pk PRIMARY KEY (username) CONSTRAINT jiveUser_pk PRIMARY KEY (username)
); );
CREATE INDEX jiveUser_cDate_idx ON jiveUser (creationDate ASC); CREATE INDEX jiveUser_cDate_idx ON jiveUser (creationDate ASC);
CREATE TABLE jiveUserProp ( CREATE TABLE jiveUserProp (
username NVARCHAR(32) NOT NULL, username NVARCHAR(32) NOT NULL,
name NVARCHAR(100) NOT NULL, name NVARCHAR(100) NOT NULL,
propValue NVARCHAR(2000) NOT NULL, propValue NVARCHAR(2000) NOT NULL,
CONSTRAINT jiveUserProp_pk PRIMARY KEY (username, name) CONSTRAINT jiveUserProp_pk PRIMARY KEY (username, name)
); );
CREATE TABLE jivePrivate ( CREATE TABLE jivePrivate (
username NVARCHAR(32) NOT NULL, username NVARCHAR(32) NOT NULL,
name NVARCHAR(100) NOT NULL, name NVARCHAR(100) NOT NULL,
namespace NVARCHAR(200) NOT NULL, namespace NVARCHAR(200) NOT NULL,
value NTEXT NOT NULL, value NTEXT NOT NULL,
CONSTRAINT JivePrivate_pk PRIMARY KEY (username, name, namespace) CONSTRAINT JivePrivate_pk PRIMARY KEY (username, name, namespace)
); );
CREATE TABLE jiveOffline ( CREATE TABLE jiveOffline (
username NVARCHAR(32) NOT NULL, username NVARCHAR(32) NOT NULL,
messageID INTEGER NOT NULL, messageID INTEGER NOT NULL,
creationDate CHAR(15) NOT NULL, creationDate CHAR(15) NOT NULL,
messageSize INTEGER NOT NULL, messageSize INTEGER NOT NULL,
message NTEXT NOT NULL, message NTEXT NOT NULL,
CONSTRAINT jiveOffline_pk PRIMARY KEY (username, messageID) CONSTRAINT jiveOffline_pk PRIMARY KEY (username, messageID)
); );
CREATE TABLE jiveRoster ( CREATE TABLE jiveRoster (
rosterID INTEGER NOT NULL, rosterID INTEGER NOT NULL,
username NVARCHAR(32) NOT NULL, username NVARCHAR(32) NOT NULL,
jid NVARCHAR(1024) NOT NULL, jid NVARCHAR(1024) NOT NULL,
sub INTEGER NOT NULL, sub INTEGER NOT NULL,
ask INTEGER NOT NULL, ask INTEGER NOT NULL,
recv INTEGER NOT NULL, recv INTEGER NOT NULL,
nick NVARCHAR(255), nick NVARCHAR(255),
CONSTRAINT jiveRoster_pk PRIMARY KEY (rosterID) CONSTRAINT jiveRoster_pk PRIMARY KEY (rosterID)
); );
CREATE INDEX jiveRoster_username_idx ON jiveRoster (username ASC); CREATE INDEX jiveRoster_username_idx ON jiveRoster (username ASC);
CREATE TABLE jiveRosterGroups ( CREATE TABLE jiveRosterGroups (
rosterID INTEGER NOT NULL, rosterID INTEGER NOT NULL,
rank INTEGER NOT NULL, rank INTEGER NOT NULL,
groupName NVARCHAR(255) NOT NULL, groupName NVARCHAR(255) NOT NULL,
CONSTRAINT jiveRosterGroups_pk PRIMARY KEY (rosterID, rank) CONSTRAINT jiveRosterGroups_pk PRIMARY KEY (rosterID, rank)
); );
CREATE INDEX jiveRosterGroups_rosterid_idx ON jiveRosterGroups (rosterID ASC); CREATE INDEX jiveRosterGroups_rosterid_idx ON jiveRosterGroups (rosterID ASC);
ALTER TABLE jiveRosterGroups ADD CONSTRAINT jiveRosterGroups_rosterID_fk FOREIGN KEY (rosterID) REFERENCES jiveRoster; ALTER TABLE jiveRosterGroups ADD CONSTRAINT jiveRosterGroups_rosterID_fk FOREIGN KEY (rosterID) REFERENCES jiveRoster;
CREATE TABLE jiveVCard ( CREATE TABLE jiveVCard (
username NVARCHAR(32) NOT NULL, username NVARCHAR(32) NOT NULL,
value NTEXT NOT NULL, value NTEXT NOT NULL,
CONSTRAINT JiveVCard_pk PRIMARY KEY (username) CONSTRAINT JiveVCard_pk PRIMARY KEY (username)
); );
CREATE TABLE jiveGroup ( CREATE TABLE jiveGroup (
groupName NVARCHAR(50) NOT NULL, groupName NVARCHAR(50) NOT NULL,
description NVARCHAR(255), description NVARCHAR(255),
CONSTRAINT group_pk PRIMARY KEY (groupName) CONSTRAINT group_pk PRIMARY KEY (groupName)
); );
CREATE TABLE jiveGroupProp ( CREATE TABLE jiveGroupProp (
groupName NVARCHAR(50) NOT NULL, groupName NVARCHAR(50) NOT NULL,
name NVARCHAR(100) NOT NULL, name NVARCHAR(100) NOT NULL,
propValue NVARCHAR(2000) NOT NULL, propValue NVARCHAR(2000) NOT NULL,
CONSTRAINT jiveGroupProp_pk PRIMARY KEY (groupName, name) CONSTRAINT jiveGroupProp_pk PRIMARY KEY (groupName, name)
); );
CREATE TABLE jiveGroupUser ( CREATE TABLE jiveGroupUser (
groupName NVARCHAR(50) NOT NULL, groupName NVARCHAR(50) NOT NULL,
username NVARCHAR(100) NOT NULL, username NVARCHAR(100) NOT NULL,
administrator INTEGER NOT NULL, administrator INTEGER NOT NULL,
CONSTRAINT jiveGroupUser_pk PRIMARY KEY (groupName, username, administrator) CONSTRAINT jiveGroupUser_pk PRIMARY KEY (groupName, username, administrator)
); );
CREATE TABLE jiveID ( CREATE TABLE jiveID (
idType INTEGER NOT NULL, idType INTEGER NOT NULL,
id INTEGER NOT NULL, id INTEGER NOT NULL,
CONSTRAINT jiveID_pk PRIMARY KEY (idType) CONSTRAINT jiveID_pk PRIMARY KEY (idType)
); );
CREATE TABLE jiveProperty ( CREATE TABLE jiveProperty (
name NVARCHAR(100) NOT NULL, name NVARCHAR(100) NOT NULL,
propValue NTEXT NOT NULL, propValue NTEXT NOT NULL,
CONSTRAINT jiveProperty_pk PRIMARY KEY (name) CONSTRAINT jiveProperty_pk PRIMARY KEY (name)
); );
CREATE TABLE jiveVersion ( CREATE TABLE jiveVersion (
majorVersion INTEGER NOT NULL, majorVersion INTEGER NOT NULL,
minorVersion INTEGER NOT NULL minorVersion INTEGER NOT NULL
); );
CREATE TABLE jiveExtComponentConf ( CREATE TABLE jiveExtComponentConf (
subdomain NVARCHAR(255) NOT NULL, subdomain NVARCHAR(255) NOT NULL,
secret NVARCHAR(255), secret NVARCHAR(255),
permission NVARCHAR(10) NOT NULL, permission NVARCHAR(10) NOT NULL,
CONSTRAINT jiveExtComponentConf_pk PRIMARY KEY (subdomain) CONSTRAINT jiveExtComponentConf_pk PRIMARY KEY (subdomain)
); );
CREATE TABLE jiveRemoteServerConf ( CREATE TABLE jiveRemoteServerConf (
domain NVARCHAR(255) NOT NULL, domain NVARCHAR(255) NOT NULL,
remotePort INTEGER, remotePort INTEGER,
permission NVARCHAR(10) NOT NULL, permission NVARCHAR(10) NOT NULL,
CONSTRAINT jiveRemoteServerConf_pk PRIMARY KEY (domain) CONSTRAINT jiveRemoteServerConf_pk PRIMARY KEY (domain)
); );
/* MUC Tables */ /* MUC Tables */
CREATE TABLE mucRoom ( CREATE TABLE mucRoom (
roomID INT NOT NULL, roomID INT NOT NULL,
creationDate CHAR(15) NOT NULL, creationDate CHAR(15) NOT NULL,
modificationDate CHAR(15) NOT NULL, modificationDate CHAR(15) NOT NULL,
name NVARCHAR(50) NOT NULL, name NVARCHAR(50) NOT NULL,
naturalName NVARCHAR(255) NOT NULL, naturalName NVARCHAR(255) NOT NULL,
description NVARCHAR(255), description NVARCHAR(255),
lockedDate CHAR(15) NOT NULL, lockedDate CHAR(15) NOT NULL,
emptyDate CHAR(15) NULL, emptyDate CHAR(15) NULL,
canChangeSubject INT NOT NULL, canChangeSubject INT NOT NULL,
maxUsers INT NOT NULL, maxUsers INT NOT NULL,
publicRoom INT NOT NULL, publicRoom INT NOT NULL,
moderated INT NOT NULL, moderated INT NOT NULL,
membersOnly INT NOT NULL, membersOnly INT NOT NULL,
canInvite INT NOT NULL, canInvite INT NOT NULL,
password NVARCHAR(50) NULL, password NVARCHAR(50) NULL,
canDiscoverJID INT NOT NULL, canDiscoverJID INT NOT NULL,
logEnabled INT NOT NULL, logEnabled INT NOT NULL,
subject NVARCHAR(100) NULL, subject NVARCHAR(100) NULL,
rolesToBroadcast INT NOT NULL, rolesToBroadcast INT NOT NULL,
useReservedNick INT NOT NULL, useReservedNick INT NOT NULL,
canChangeNick INT NOT NULL, canChangeNick INT NOT NULL,
canRegister INT NOT NULL, canRegister INT NOT NULL,
CONSTRAINT mucRoom__pk PRIMARY KEY (name) CONSTRAINT mucRoom__pk PRIMARY KEY (name)
); );
CREATE INDEX mucRoom_roomID_idx on mucRoom(roomID); CREATE INDEX mucRoom_roomID_idx on mucRoom(roomID);
CREATE TABLE mucRoomProp ( CREATE TABLE mucRoomProp (
roomID INT NOT NULL, roomID INT NOT NULL,
name NVARCHAR(100) NOT NULL, name NVARCHAR(100) NOT NULL,
propValue NVARCHAR(2000) NOT NULL, propValue NVARCHAR(2000) NOT NULL,
CONSTRAINT mucRoomProp_pk PRIMARY KEY (roomID, name) CONSTRAINT mucRoomProp_pk PRIMARY KEY (roomID, name)
); );
CREATE TABLE mucAffiliation ( CREATE TABLE mucAffiliation (
roomID INT NOT NULL, roomID INT NOT NULL,
jid NVARCHAR(424) NOT NULL, jid NVARCHAR(424) NOT NULL,
affiliation INT NOT NULL, affiliation INT NOT NULL,
CONSTRAINT mucAffiliation__pk PRIMARY KEY (roomID,jid) CONSTRAINT mucAffiliation__pk PRIMARY KEY (roomID,jid)
); );
CREATE TABLE mucMember ( CREATE TABLE mucMember (
roomID INT NOT NULL, roomID INT NOT NULL,
jid NVARCHAR(424) NOT NULL, jid NVARCHAR(424) NOT NULL,
nickname NVARCHAR(255) NULL, nickname NVARCHAR(255) NULL,
firstName NVARCHAR(100) NULL, firstName NVARCHAR(100) NULL,
lastName NVARCHAR(100) NULL, lastName NVARCHAR(100) NULL,
url NVARCHAR(100) NULL, url NVARCHAR(100) NULL,
email NVARCHAR(100) NULL, email NVARCHAR(100) NULL,
faqentry NVARCHAR(100) NULL, faqentry NVARCHAR(100) NULL,
CONSTRAINT mucMember__pk PRIMARY KEY (roomID,jid) CONSTRAINT mucMember__pk PRIMARY KEY (roomID,jid)
); );
CREATE TABLE mucConversationLog ( CREATE TABLE mucConversationLog (
roomID INT NOT NULL, roomID INT NOT NULL,
sender NVARCHAR(1024) NOT NULL, sender NVARCHAR(1024) NOT NULL,
nickname NVARCHAR(255) NULL, nickname NVARCHAR(255) NULL,
time CHAR(15) NOT NULL, time CHAR(15) NOT NULL,
subject NVARCHAR(255) NULL, subject NVARCHAR(255) NULL,
body NTEXT NULL body NTEXT NULL
); );
CREATE INDEX mucLog_time_idx ON mucConversationLog (time); CREATE INDEX mucLog_time_idx ON mucConversationLog (time);
/* Finally, insert default table values. */ /* Finally, insert default table values. */
INSERT INTO jiveID (idType, id) VALUES (18, 1); INSERT INTO jiveID (idType, id) VALUES (18, 1);
INSERT INTO jiveID (idType, id) VALUES (19, 1); INSERT INTO jiveID (idType, id) VALUES (19, 1);
INSERT INTO jiveID (idType, id) VALUES (23, 1); INSERT INTO jiveID (idType, id) VALUES (23, 1);
INSERT INTO jiveVersion (majorVersion, minorVersion) VALUES (2, 2); INSERT INTO jiveVersion (majorVersion, minorVersion) VALUES (2, 4);
/* Entry for admin user */ /* Entry for admin user */
INSERT INTO jiveUser (username, password, name, email, creationDate, modificationDate) INSERT INTO jiveUser (username, password, name, email, creationDate, modificationDate)
VALUES ('admin', 'admin', 'Administrator', 'admin@example.com', '0', '0'); VALUES ('admin', 'admin', 'Administrator', 'admin@example.com', '0', '0');
\ No newline at end of file
/* $RCSfile$ */ /* $RCSfile$ */
/* $Revision: 1650 $ */ /* $Revision: 1650 $ */
/* $Date: 2005-07-19 20:18:17 -0700 (Tue, 19 Jul 2005) $ */ /* $Date: 2005-07-19 20:18:17 -0700 (Tue, 19 Jul 2005) $ */
CREATE TABLE jiveUser ( CREATE TABLE jiveUser (
username NVARCHAR(32) NOT NULL, username NVARCHAR(32) NOT NULL,
password NVARCHAR(32) NOT NULL, password NVARCHAR(32) NOT NULL,
name NVARCHAR(100), name NVARCHAR(100),
email VARCHAR(100), email VARCHAR(100),
creationDate CHAR(15) NOT NULL, creationDate CHAR(15) NOT NULL,
modificationDate CHAR(15) NOT NULL, modificationDate CHAR(15) NOT NULL,
CONSTRAINT jiveUser_pk PRIMARY KEY (username) CONSTRAINT jiveUser_pk PRIMARY KEY (username)
); );
CREATE INDEX jiveUser_cDate_idx ON jiveUser (creationDate ASC); CREATE INDEX jiveUser_cDate_idx ON jiveUser (creationDate ASC);
CREATE TABLE jiveUserProp ( CREATE TABLE jiveUserProp (
username NVARCHAR(32) NOT NULL, username NVARCHAR(32) NOT NULL,
name NVARCHAR(100) NOT NULL, name NVARCHAR(100) NOT NULL,
propValue TEXT NOT NULL, propValue TEXT NOT NULL,
CONSTRAINT jiveUserProp_pk PRIMARY KEY (username, name) CONSTRAINT jiveUserProp_pk PRIMARY KEY (username, name)
); );
CREATE TABLE jivePrivate ( CREATE TABLE jivePrivate (
username NVARCHAR(32) NOT NULL, username NVARCHAR(32) NOT NULL,
name NVARCHAR(100) NOT NULL, name NVARCHAR(100) NOT NULL,
namespace NVARCHAR(200) NOT NULL, namespace NVARCHAR(200) NOT NULL,
value TEXT NOT NULL, value TEXT NOT NULL,
CONSTRAINT JivePrivate_pk PRIMARY KEY (username, name, namespace) CONSTRAINT JivePrivate_pk PRIMARY KEY (username, name, namespace)
); );
CREATE TABLE jiveOffline ( CREATE TABLE jiveOffline (
username NVARCHAR(32) NOT NULL, username NVARCHAR(32) NOT NULL,
messageID INTEGER NOT NULL, messageID INTEGER NOT NULL,
creationDate CHAR(15) NOT NULL, creationDate CHAR(15) NOT NULL,
messageSize INTEGER NOT NULL, messageSize INTEGER NOT NULL,
message TEXT NOT NULL, message TEXT NOT NULL,
CONSTRAINT jiveOffline_pk PRIMARY KEY (username, messageID) CONSTRAINT jiveOffline_pk PRIMARY KEY (username, messageID)
); );
CREATE TABLE jiveRoster ( CREATE TABLE jiveRoster (
rosterID INTEGER NOT NULL, rosterID INTEGER NOT NULL,
username NVARCHAR(32) NOT NULL, username NVARCHAR(32) NOT NULL,
jid TEXT NOT NULL, jid TEXT NOT NULL,
sub INTEGER NOT NULL, sub INTEGER NOT NULL,
ask INTEGER NOT NULL, ask INTEGER NOT NULL,
recv INTEGER NOT NULL, recv INTEGER NOT NULL,
nick NVARCHAR(255), nick NVARCHAR(255),
CONSTRAINT jiveRoster_pk PRIMARY KEY (rosterID) CONSTRAINT jiveRoster_pk PRIMARY KEY (rosterID)
); );
CREATE INDEX jiveRoster_username_idx ON jiveRoster (username ASC); CREATE INDEX jiveRoster_username_idx ON jiveRoster (username ASC);
CREATE TABLE jiveRosterGroups ( CREATE TABLE jiveRosterGroups (
rosterID INTEGER NOT NULL, rosterID INTEGER NOT NULL,
rank INTEGER NOT NULL, rank INTEGER NOT NULL,
groupName NVARCHAR(255) NOT NULL, groupName NVARCHAR(255) NOT NULL,
CONSTRAINT jiveRosterGroups_pk PRIMARY KEY (rosterID, rank) CONSTRAINT jiveRosterGroups_pk PRIMARY KEY (rosterID, rank)
); );
CREATE INDEX jiveRosterGroups_rosterid_idx ON jiveRosterGroups (rosterID ASC); CREATE INDEX jiveRosterGroups_rosterid_idx ON jiveRosterGroups (rosterID ASC);
ALTER TABLE jiveRosterGroups ADD CONSTRAINT jiveRosterGroups_rosterID_fk FOREIGN KEY (rosterID) REFERENCES jiveRoster; ALTER TABLE jiveRosterGroups ADD CONSTRAINT jiveRosterGroups_rosterID_fk FOREIGN KEY (rosterID) REFERENCES jiveRoster;
CREATE TABLE jiveVCard ( CREATE TABLE jiveVCard (
username NVARCHAR(32) NOT NULL, username NVARCHAR(32) NOT NULL,
value TEXT NOT NULL, value TEXT NOT NULL,
CONSTRAINT JiveVCard_pk PRIMARY KEY (username) CONSTRAINT JiveVCard_pk PRIMARY KEY (username)
); );
CREATE TABLE jiveGroup ( CREATE TABLE jiveGroup (
groupName NVARCHAR(50) NOT NULL, groupName NVARCHAR(50) NOT NULL,
description NVARCHAR(255), description NVARCHAR(255),
CONSTRAINT group_pk PRIMARY KEY (groupName) CONSTRAINT group_pk PRIMARY KEY (groupName)
); );
CREATE TABLE jiveGroupProp ( CREATE TABLE jiveGroupProp (
groupName NVARCHAR(50) NOT NULL, groupName NVARCHAR(50) NOT NULL,
name NVARCHAR(100) NOT NULL, name NVARCHAR(100) NOT NULL,
propValue TEXT NOT NULL, propValue TEXT NOT NULL,
CONSTRAINT jiveGroupProp_pk PRIMARY KEY (groupName, name) CONSTRAINT jiveGroupProp_pk PRIMARY KEY (groupName, name)
); );
CREATE TABLE jiveGroupUser ( CREATE TABLE jiveGroupUser (
groupName NVARCHAR(50) NOT NULL, groupName NVARCHAR(50) NOT NULL,
username NVARCHAR(100) NOT NULL, username NVARCHAR(100) NOT NULL,
administrator INTEGER NOT NULL, administrator INTEGER NOT NULL,
CONSTRAINT jiveGroupUser_pk PRIMARY KEY (groupName, username, administrator) CONSTRAINT jiveGroupUser_pk PRIMARY KEY (groupName, username, administrator)
); );
CREATE TABLE jiveID ( CREATE TABLE jiveID (
idType INTEGER NOT NULL, idType INTEGER NOT NULL,
id INTEGER NOT NULL, id INTEGER NOT NULL,
CONSTRAINT jiveID_pk PRIMARY KEY (idType) CONSTRAINT jiveID_pk PRIMARY KEY (idType)
); );
CREATE TABLE jiveProperty ( CREATE TABLE jiveProperty (
name NVARCHAR(100) NOT NULL, name NVARCHAR(100) NOT NULL,
propValue TEXT NOT NULL, propValue TEXT NOT NULL,
CONSTRAINT jiveProperty_pk PRIMARY KEY (name) CONSTRAINT jiveProperty_pk PRIMARY KEY (name)
); );
CREATE TABLE jiveVersion ( CREATE TABLE jiveVersion (
majorVersion INTEGER NOT NULL, majorVersion INTEGER NOT NULL,
minorVersion INTEGER NOT NULL minorVersion INTEGER NOT NULL
); );
CREATE TABLE jiveExtComponentConf ( CREATE TABLE jiveExtComponentConf (
subdomain NVARCHAR(255) NOT NULL, subdomain NVARCHAR(255) NOT NULL,
secret NVARCHAR(255), secret NVARCHAR(255),
permission NVARCHAR(10) NOT NULL, permission NVARCHAR(10) NOT NULL,
CONSTRAINT jiveExtComponentConf_pk PRIMARY KEY (subdomain) CONSTRAINT jiveExtComponentConf_pk PRIMARY KEY (subdomain)
); );
CREATE TABLE jiveRemoteServerConf ( CREATE TABLE jiveRemoteServerConf (
domain NVARCHAR(255) NOT NULL, domain NVARCHAR(255) NOT NULL,
remotePort INTEGER, remotePort INTEGER,
permission NVARCHAR(10) NOT NULL, permission NVARCHAR(10) NOT NULL,
CONSTRAINT jiveRemoteServerConf_pk PRIMARY KEY (domain) CONSTRAINT jiveRemoteServerConf_pk PRIMARY KEY (domain)
); );
/* MUC Tables */ /* MUC Tables */
CREATE TABLE mucRoom ( CREATE TABLE mucRoom (
roomID INT NOT NULL, roomID INT NOT NULL,
creationDate CHAR(15) NOT NULL, creationDate CHAR(15) NOT NULL,
modificationDate CHAR(15) NOT NULL, modificationDate CHAR(15) NOT NULL,
name NVARCHAR(50) NOT NULL, name NVARCHAR(50) NOT NULL,
naturalName NVARCHAR(255) NOT NULL, naturalName NVARCHAR(255) NOT NULL,
description NVARCHAR(255), description NVARCHAR(255),
lockedDate CHAR(15) NOT NULL, lockedDate CHAR(15) NOT NULL,
emptyDate CHAR(15) NULL, emptyDate CHAR(15) NULL,
canChangeSubject INT NOT NULL, canChangeSubject INT NOT NULL,
maxUsers INT NOT NULL, maxUsers INT NOT NULL,
publicRoom INT NOT NULL, publicRoom INT NOT NULL,
moderated INT NOT NULL, moderated INT NOT NULL,
membersOnly INT NOT NULL, membersOnly INT NOT NULL,
canInvite INT NOT NULL, canInvite INT NOT NULL,
password NVARCHAR(50) NULL, password NVARCHAR(50) NULL,
canDiscoverJID INT NOT NULL, canDiscoverJID INT NOT NULL,
logEnabled INT NOT NULL, logEnabled INT NOT NULL,
subject NVARCHAR(100) NULL, subject NVARCHAR(100) NULL,
rolesToBroadcast INT NOT NULL, rolesToBroadcast INT NOT NULL,
useReservedNick INT NOT NULL, useReservedNick INT NOT NULL,
canChangeNick INT NOT NULL, canChangeNick INT NOT NULL,
canRegister INT NOT NULL, canRegister INT NOT NULL,
CONSTRAINT mucRoom__pk PRIMARY KEY (name) CONSTRAINT mucRoom__pk PRIMARY KEY (name)
); );
CREATE INDEX mucRoom_roomID_idx on mucRoom(roomID); CREATE INDEX mucRoom_roomID_idx on mucRoom(roomID);
CREATE TABLE mucRoomProp ( CREATE TABLE mucRoomProp (
roomID INT NOT NULL, roomID INT NOT NULL,
name NVARCHAR(100) NOT NULL, name NVARCHAR(100) NOT NULL,
propValue TEXT NOT NULL, propValue TEXT NOT NULL,
CONSTRAINT mucRoomProp_pk PRIMARY KEY (roomID, name) CONSTRAINT mucRoomProp_pk PRIMARY KEY (roomID, name)
); );
CREATE TABLE mucAffiliation ( CREATE TABLE mucAffiliation (
roomID INT NOT NULL, roomID INT NOT NULL,
jid VARCHAR(255) NOT NULL, jid VARCHAR(255) NOT NULL,
affiliation INT NOT NULL, affiliation INT NOT NULL,
CONSTRAINT mucAffiliation__pk PRIMARY KEY (roomID,jid) CONSTRAINT mucAffiliation__pk PRIMARY KEY (roomID,jid)
); );
CREATE TABLE mucMember ( CREATE TABLE mucMember (
roomID INT NOT NULL, roomID INT NOT NULL,
jid NVARCHAR(255) NOT NULL, jid NVARCHAR(255) NOT NULL,
nickname NVARCHAR(255) NULL, nickname NVARCHAR(255) NULL,
firstName NVARCHAR(100) NULL, firstName NVARCHAR(100) NULL,
lastName NVARCHAR(100) NULL, lastName NVARCHAR(100) NULL,
url NVARCHAR(100) NULL, url NVARCHAR(100) NULL,
email NVARCHAR(100) NULL, email NVARCHAR(100) NULL,
faqentry NVARCHAR(100) NULL, faqentry NVARCHAR(100) NULL,
CONSTRAINT mucMember__pk PRIMARY KEY (roomID,jid) CONSTRAINT mucMember__pk PRIMARY KEY (roomID,jid)
); );
CREATE TABLE mucConversationLog ( CREATE TABLE mucConversationLog (
roomID INT NOT NULL, roomID INT NOT NULL,
sender TEXT NOT NULL, sender TEXT NOT NULL,
nickname NVARCHAR(255) NULL, nickname NVARCHAR(255) NULL,
time CHAR(15) NOT NULL, time CHAR(15) NOT NULL,
subject NVARCHAR(255) NULL, subject NVARCHAR(255) NULL,
body TEXT NULL body TEXT NULL
); );
CREATE INDEX mucLog_time_idx ON mucConversationLog (time); CREATE INDEX mucLog_time_idx ON mucConversationLog (time);
/* Finally, insert default table values. */ /* Finally, insert default table values. */
INSERT INTO jiveID (idType, id) VALUES (18, 1); INSERT INTO jiveID (idType, id) VALUES (18, 1);
INSERT INTO jiveID (idType, id) VALUES (19, 1); INSERT INTO jiveID (idType, id) VALUES (19, 1);
INSERT INTO jiveID (idType, id) VALUES (23, 1); INSERT INTO jiveID (idType, id) VALUES (23, 1);
INSERT INTO jiveVersion (majorVersion, minorVersion) VALUES (2, 2); INSERT INTO jiveVersion (majorVersion, minorVersion) VALUES (2, 4);
/* Entry for admin user */ /* Entry for admin user */
INSERT INTO jiveUser (username, password, name, email, creationDate, modificationDate) INSERT INTO jiveUser (username, password, name, email, creationDate, modificationDate)
VALUES ('admin', 'admin', 'Administrator', 'admin@example.com', '0', '0'); VALUES ('admin', 'admin', 'Administrator', 'admin@example.com', '0', '0');
\ No newline at end of file
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