Commit 3cab3072 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

1. Renamed column "name" of table "jiveGroup" to "groupName". JM-67

2. Removed lastActiveDate field from mucRoom.
3. Changed index of table mucConversationLog
4. Removed jiveDomain table.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@575 b35dd754-fafc-0310-a699-88a17e54d16e
parent 771bf076
...@@ -71,21 +71,10 @@ CREATE TABLE jiveVCard ( ...@@ -71,21 +71,10 @@ CREATE TABLE jiveVCard (
); );
CREATE TABLE jiveDomain (
domainID BIGINT NOT NULL,
name VARCHAR(100) NOT NULL,
description VARCHAR(255),
creationDate VARCHAR(15) NOT NULL,
modificationDate VARCHAR(15) NOT NULL,
CONSTRAINT jiveDomain_pk PRIMARY KEY (domainID),
CONSTRAINT jiveDomain_name UNIQUE (name)
);
CREATE TABLE jiveGroup ( CREATE TABLE jiveGroup (
name VARCHAR(50) NOT NULL, groupName VARCHAR(50) NOT NULL,
description VARCHAR(255), description VARCHAR(255),
CONSTRAINT jiveGroup_pk PRIMARY KEY (name) CONSTRAINT jiveGroup_pk PRIMARY KEY (groupName)
); );
...@@ -138,7 +127,6 @@ CREATE TABLE mucRoom ( ...@@ -138,7 +127,6 @@ CREATE TABLE mucRoom (
logEnabled INTEGER NOT NULL, logEnabled INTEGER NOT NULL,
subject VARCHAR(100) NULL, subject VARCHAR(100) NULL,
rolesToBroadcast INTEGER NOT NULL, rolesToBroadcast INTEGER NOT NULL,
lastActiveDate CHAR(15) NULL,
CONSTRAINT mucRoom_pk PRIMARY KEY (name) CONSTRAINT mucRoom_pk PRIMARY KEY (name)
); );
...@@ -166,7 +154,7 @@ CREATE TABLE mucConversationLog ( ...@@ -166,7 +154,7 @@ CREATE TABLE mucConversationLog (
subject VARCHAR(255) NULL, subject VARCHAR(255) NULL,
body LONGVARCHAR NULL body LONGVARCHAR NULL
); );
CREATE INDEX mucLog_time_idx ON mucConversationLog (time, roomID); CREATE INDEX mucLog_time_idx ON mucConversationLog (time);
// Finally, insert default table values. // Finally, insert default table values.
......
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