Commit 72d59d82 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Added jivePrivacyList table and updated to 2.5 version. JM-102

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3419 b35dd754-fafc-0310-a699-88a17e54d16e
parent ad46c6de
...@@ -126,6 +126,15 @@ CREATE TABLE jiveRemoteServerConf ( ...@@ -126,6 +126,15 @@ CREATE TABLE jiveRemoteServerConf (
CONSTRAINT jiveRmSrvConf_pk PRIMARY KEY (domain) CONSTRAINT jiveRmSrvConf_pk PRIMARY KEY (domain)
); );
CREATE TABLE jivePrivacyList (
username VARCHAR(32) NOT NULL,
name VARCHAR(100) NOT NULL,
isDefault INTEGER NOT NULL,
list VARCHAR(2000) NOT NULL,
CONSTRAINT jivePrivacyList_pk PRIMARY KEY (username, name)
);
CREATE INDEX jivePList_default_idx ON jivePrivacyList (username, isDefault);
-- MUC tables -- MUC tables
CREATE TABLE mucRoom ( CREATE TABLE mucRoom (
...@@ -198,7 +207,7 @@ INSERT INTO jiveID (idType, id) VALUES (18, 1); ...@@ -198,7 +207,7 @@ 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, 4); INSERT INTO jiveVersion (majorVersion, minorVersion) VALUES (2, 5);
-- 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)
......
...@@ -126,6 +126,15 @@ CREATE TABLE jiveRemoteServerConf ( ...@@ -126,6 +126,15 @@ CREATE TABLE jiveRemoteServerConf (
CONSTRAINT jiveRemoteServerConf_pk PRIMARY KEY (domain) CONSTRAINT jiveRemoteServerConf_pk PRIMARY KEY (domain)
); );
CREATE TABLE jivePrivacyList (
username VARCHAR(32) NOT NULL,
name VARCHAR(100) NOT NULL,
isDefault INTEGER NOT NULL,
list LONGVARCHAR NOT NULL,
CONSTRAINT jivePrivacyList_pk PRIMARY KEY (username, name)
);
CREATE INDEX jivePList_default_idx ON jivePrivacyList (username, isDefault);
// MUC Tables // MUC Tables
CREATE TABLE mucRoom ( CREATE TABLE mucRoom (
...@@ -198,7 +207,7 @@ INSERT INTO jiveID (idType, id) VALUES (18, 1); ...@@ -198,7 +207,7 @@ 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, 4); INSERT INTO jiveVersion (majorVersion, minorVersion) VALUES (2, 5);
// 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)
......
...@@ -115,6 +115,15 @@ CREATE TABLE jiveRemoteServerConf ( ...@@ -115,6 +115,15 @@ CREATE TABLE jiveRemoteServerConf (
PRIMARY KEY (domain) PRIMARY KEY (domain)
); );
CREATE TABLE jivePrivacyList (
username VARCHAR(32) NOT NULL,
name VARCHAR(100) NOT NULL,
isDefault TINYINT NOT NULL,
list TEXT NOT NULL,
PRIMARY KEY (username, name),
INDEX jivePList_default_idx (username, isDefault)
);
# MUC Tables # MUC Tables
CREATE TABLE mucRoom ( CREATE TABLE mucRoom (
...@@ -186,7 +195,7 @@ INSERT INTO jiveID (idType, id) VALUES (18, 1); ...@@ -186,7 +195,7 @@ 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, 4); INSERT INTO jiveVersion (majorVersion, minorVersion) VALUES (2, 5);
# 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)
......
...@@ -121,6 +121,15 @@ CREATE TABLE jiveRemoteServerConf ( ...@@ -121,6 +121,15 @@ CREATE TABLE jiveRemoteServerConf (
CONSTRAINT jiveRemoteServerConf_pk PRIMARY KEY (domain) CONSTRAINT jiveRemoteServerConf_pk PRIMARY KEY (domain)
); );
CREATE TABLE jivePrivacyList (
username VARCHAR2(32) NOT NULL,
name VARCHAR2(100) NOT NULL,
isDefault INTEGER NOT NULL,
list LONG NOT NULL,
CONSTRAINT jivePrivacyList_pk PRIMARY KEY (username, name)
);
CREATE INDEX jivePList_default_idx ON jivePrivacyList (username, isDefault);
REM // MUC Tables REM // MUC Tables
CREATE TABLE mucRoom( CREATE TABLE mucRoom(
...@@ -192,7 +201,7 @@ INSERT INTO jiveID (idType, id) VALUES (18, 1); ...@@ -192,7 +201,7 @@ 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, 4); INSERT INTO jiveVersion (majorVersion, minorVersion) VALUES (2, 5);
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)
......
...@@ -129,6 +129,15 @@ CREATE TABLE jiveRemoteServerConf ( ...@@ -129,6 +129,15 @@ CREATE TABLE jiveRemoteServerConf (
CONSTRAINT jiveRemoteServerConf_pk PRIMARY KEY (domain) CONSTRAINT jiveRemoteServerConf_pk PRIMARY KEY (domain)
); );
CREATE TABLE jivePrivacyList (
username VARCHAR(32) NOT NULL,
name VARCHAR(100) NOT NULL,
isDefault INTEGER NOT NULL,
list TEXT NOT NULL,
CONSTRAINT jivePrivacyList_pk PRIMARY KEY (username, name)
);
CREATE INDEX jivePList_default_idx ON jivePrivacyList (username, isDefault);
-- MUC Tables -- MUC Tables
CREATE TABLE mucRoom ( CREATE TABLE mucRoom (
...@@ -201,7 +210,7 @@ INSERT INTO jiveID (idType, id) VALUES (18, 1); ...@@ -201,7 +210,7 @@ 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, 4); INSERT INTO jiveVersion (majorVersion, minorVersion) VALUES (2, 5);
-- 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)
......
...@@ -127,6 +127,15 @@ CREATE TABLE jiveRemoteServerConf ( ...@@ -127,6 +127,15 @@ CREATE TABLE jiveRemoteServerConf (
CONSTRAINT jiveRemoteServerConf_pk PRIMARY KEY (domain) CONSTRAINT jiveRemoteServerConf_pk PRIMARY KEY (domain)
); );
CREATE TABLE jivePrivacyList (
username NVARCHAR(32) NOT NULL,
name NVARCHAR(100) NOT NULL,
isDefault INT NOT NULL,
list NTEXT NOT NULL,
CONSTRAINT jivePrivacyList_pk PRIMARY KEY (username, name)
);
CREATE INDEX jivePList_default_idx ON jivePrivacyList (username, isDefault);
/* MUC Tables */ /* MUC Tables */
CREATE TABLE mucRoom ( CREATE TABLE mucRoom (
...@@ -199,7 +208,7 @@ INSERT INTO jiveID (idType, id) VALUES (18, 1); ...@@ -199,7 +208,7 @@ 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, 4); INSERT INTO jiveVersion (majorVersion, minorVersion) VALUES (2, 5);
/* 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)
......
...@@ -127,6 +127,15 @@ CREATE TABLE jiveRemoteServerConf ( ...@@ -127,6 +127,15 @@ CREATE TABLE jiveRemoteServerConf (
CONSTRAINT jiveRemoteServerConf_pk PRIMARY KEY (domain) CONSTRAINT jiveRemoteServerConf_pk PRIMARY KEY (domain)
); );
CREATE TABLE jivePrivacyList (
username NVARCHAR(32) NOT NULL,
name NVARCHAR(100) NOT NULL,
isDefault INT NOT NULL,
list TEXT NOT NULL,
CONSTRAINT jivePrivacyList_pk PRIMARY KEY (username, name)
);
CREATE INDEX jivePList_default_idx ON jivePrivacyList (username, isDefault);
/* MUC Tables */ /* MUC Tables */
CREATE TABLE mucRoom ( CREATE TABLE mucRoom (
...@@ -199,7 +208,7 @@ INSERT INTO jiveID (idType, id) VALUES (18, 1); ...@@ -199,7 +208,7 @@ 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, 4); INSERT INTO jiveVersion (majorVersion, minorVersion) VALUES (2, 5);
/* 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)
......
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