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

Added jiveSASLAuthorized table. JM-281

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@4158 b35dd754-fafc-0310-a699-88a17e54d16e
parent 4ee693f7
......@@ -140,6 +140,12 @@ CREATE TABLE jivePrivacyList (
CREATE INDEX jivePList_default_idx ON jivePrivacyList (username, isDefault);
CREATE TABLE jiveSASLAuthorized (
username VARCHAR(64) NOT NULL,
principal VARCHAR(4000) NOT NULL,
CONSTRAINT jiveSASLAuthorized_pk PRIMARY KEY (username, principal)
);
-- MUC tables
CREATE TABLE mucRoom (
......@@ -330,7 +336,7 @@ INSERT INTO jiveID (idType, id) VALUES (18, 1);
INSERT INTO jiveID (idType, id) VALUES (19, 1);
INSERT INTO jiveID (idType, id) VALUES (23, 1);
INSERT INTO jiveVersion (name, version) VALUES ('wildfire', 9);
INSERT INTO jiveVersion (name, version) VALUES ('wildfire', 10);
-- Entry for admin user
INSERT INTO jiveUser (username, password, name, email, creationDate, modificationDate)
......
......@@ -136,6 +136,12 @@ CREATE TABLE jivePrivacyList (
);
CREATE INDEX jivePList_default_idx ON jivePrivacyList (username, isDefault);
CREATE TABLE jiveSASLAuthorized (
username VARCHAR(64) NOT NULL,
principal VARCHAR(4000) NOT NULL,
CONSTRAINT jiveSASLAuthorized_pk PRIMARY KEY (username, principal)
);
// MUC Tables
CREATE TABLE mucRoom (
......@@ -317,7 +323,7 @@ INSERT INTO jiveID (idType, id) VALUES (18, 1);
INSERT INTO jiveID (idType, id) VALUES (19, 1);
INSERT INTO jiveID (idType, id) VALUES (23, 1);
INSERT INTO jiveVersion (name, version) VALUES ('wildfire', 9);
INSERT INTO jiveVersion (name, version) VALUES ('wildfire', 10);
// Entry for admin user
INSERT INTO jiveUser (username, password, name, email, creationDate, modificationDate)
......
......@@ -125,6 +125,12 @@ CREATE TABLE jivePrivacyList (
INDEX jivePList_default_idx (username, isDefault)
);
CREATE TABLE jiveSASLAuthorized (
username VARCHAR(64) NOT NULL,
principal TEXT NOT NULL,
PRIMARY KEY (username, principal(200))
);
# MUC Tables
CREATE TABLE mucRoom (
......@@ -305,7 +311,7 @@ INSERT INTO jiveID (idType, id) VALUES (18, 1);
INSERT INTO jiveID (idType, id) VALUES (19, 1);
INSERT INTO jiveID (idType, id) VALUES (23, 1);
INSERT INTO jiveVersion (name, version) VALUES ('wildfire', 9);
INSERT INTO jiveVersion (name, version) VALUES ('wildfire', 10);
# Entry for admin user
INSERT INTO jiveUser (username, password, name, email, creationDate, modificationDate)
......
......@@ -131,6 +131,12 @@ CREATE TABLE jivePrivacyList (
);
CREATE INDEX jivePList_default_idx ON jivePrivacyList (username, isDefault);
CREATE TABLE jiveSASLAuthorized (
username VARCHAR(64) NOT NULL,
principal VARCHAR(4000) NOT NULL,
CONSTRAINT jiveSASLAuthoirzed_pk PRIMARY KEY (username, principal)
);
-- MUC Tables
CREATE TABLE mucRoom(
......@@ -311,7 +317,7 @@ INSERT INTO jiveID (idType, id) VALUES (18, 1);
INSERT INTO jiveID (idType, id) VALUES (19, 1);
INSERT INTO jiveID (idType, id) VALUES (23, 1);
INSERT INTO jiveVersion (name, version) VALUES ('wildfire', 9);
INSERT INTO jiveVersion (name, version) VALUES ('wildfire', 10);
-- Entry for admin user
INSERT INTO jiveUser (username, password, name, email, creationDate, modificationDate)
......
......@@ -139,6 +139,12 @@ CREATE TABLE jivePrivacyList (
);
CREATE INDEX jivePList_default_idx ON jivePrivacyList (username, isDefault);
CREATE TABLE jiveSASLAuthorized (
username VARCHAR(64) NOT NULL,
principal VARCHAR(4000) NOT NULL,
CONSTRAINT jiveSASLAuthoirzed_pk PRIMARY KEY (username, principal)
);
-- MUC Tables
CREATE TABLE mucRoom (
......@@ -320,7 +326,7 @@ INSERT INTO jiveID (idType, id) VALUES (18, 1);
INSERT INTO jiveID (idType, id) VALUES (19, 1);
INSERT INTO jiveID (idType, id) VALUES (23, 1);
INSERT INTO jiveVersion (name, version) VALUES ('wildfire', 9);
INSERT INTO jiveVersion (name, version) VALUES ('wildfire', 10);
-- Entry for admin user
INSERT INTO jiveUser (username, password, name, email, creationDate, modificationDate)
......
......@@ -137,6 +137,12 @@ CREATE TABLE jivePrivacyList (
);
CREATE INDEX jivePList_default_idx ON jivePrivacyList (username, isDefault);
CREATE TABLE jiveSASLAuthorized (
username NVARCHAR(64) NOT NULL,
principal NVARCHAR(2000) NOT NULL,
CONSTRAINT jiveSASLAuthoirzed_pk PRIMARY KEY (username, principal)
);
/* MUC Tables */
CREATE TABLE mucRoom (
......@@ -318,7 +324,7 @@ INSERT INTO jiveID (idType, id) VALUES (18, 1);
INSERT INTO jiveID (idType, id) VALUES (19, 1);
INSERT INTO jiveID (idType, id) VALUES (23, 1);
INSERT INTO jiveVersion (name, version) VALUES ('wildfire', 9);
INSERT INTO jiveVersion (name, version) VALUES ('wildfire', 10);
/* Entry for admin user */
INSERT INTO jiveUser (username, password, name, email, creationDate, modificationDate)
......
......@@ -137,6 +137,12 @@ CREATE TABLE jivePrivacyList (
);
CREATE INDEX jivePList_default_idx ON jivePrivacyList (username, isDefault);
CREATE TABLE jiveSASLAuthorized (
username NVARCHAR(64) NOT NULL,
principal NVARCHAR(4000) NOT NULL,
CONSTRAINT jiveSASLAuthoirzed_pk PRIMARY KEY (username, principal)
);
/* MUC Tables */
CREATE TABLE mucRoom (
......@@ -318,7 +324,7 @@ INSERT INTO jiveID (idType, id) VALUES (18, 1);
INSERT INTO jiveID (idType, id) VALUES (19, 1);
INSERT INTO jiveID (idType, id) VALUES (23, 1);
INSERT INTO jiveVersion (name, version) VALUES ('wildfire', 9);
INSERT INTO jiveVersion (name, version) VALUES ('wildfire', 10);
/* Entry for admin user */
INSERT INTO jiveUser (username, password, name, email, creationDate, modificationDate)
......
......@@ -47,7 +47,7 @@ public class SchemaManager {
/**
* Current Wildfire database schema version.
*/
private static final int DATABASE_VERSION = 9;
private static final int DATABASE_VERSION = 10;
/**
* Creates a new Schema manager.
......
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