Commit 962d984f authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Ported fix from TRUNK for JM-768.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/branches@4407 b35dd754-fafc-0310-a699-88a17e54d16e
parent 5b471ac7
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
ALTER TABLE jiveUser MODIFY username VARCHAR(64); ALTER TABLE jiveUser MODIFY username VARCHAR(64);
ALTER TABLE jiveUserProp MODIFY username VARCHAR(64); ALTER TABLE jiveUserProp MODIFY username VARCHAR(64);
ALTER TABLE jivePrivate DROP PRIMARY KEY ALTER TABLE jivePrivate DROP PRIMARY KEY;
ALTER TABLE jivePrivate MODIFY username VARCHAR(64); ALTER TABLE jivePrivate MODIFY username VARCHAR(64);
ALTER TABLE jivePrivate ADD PRIMARY KEY (username, name, namespace(100)); ALTER TABLE jivePrivate ADD PRIMARY KEY (username, name, namespace(100));
......
...@@ -18,7 +18,7 @@ ALTER TABLE jiveOffline DROP CONSTRAINT jiveOffline_pk; ...@@ -18,7 +18,7 @@ ALTER TABLE jiveOffline DROP CONSTRAINT jiveOffline_pk;
ALTER TABLE jiveOffline ALTER COLUMN username NVARCHAR(64) NOT NULL; ALTER TABLE jiveOffline ALTER COLUMN username NVARCHAR(64) NOT NULL;
ALTER TABLE jiveOffline ADD CONSTRAINT jiveOffline_pk PRIMARY KEY (username, messageID); ALTER TABLE jiveOffline ADD CONSTRAINT jiveOffline_pk PRIMARY KEY (username, messageID);
DROP INDEX jiveRoster.jiveRoster_username_idx DROP INDEX jiveRoster.jiveRoster_username_idx;
ALTER TABLE jiveRoster ALTER COLUMN username NVARCHAR(64) NOT NULL; ALTER TABLE jiveRoster ALTER COLUMN username NVARCHAR(64) NOT NULL;
CREATE INDEX jiveRoster_username_idx ON jiveRoster (username ASC); CREATE INDEX jiveRoster_username_idx ON jiveRoster (username ASC);
...@@ -26,7 +26,7 @@ ALTER TABLE jiveVCard DROP CONSTRAINT JiveVCard_pk; ...@@ -26,7 +26,7 @@ ALTER TABLE jiveVCard DROP CONSTRAINT JiveVCard_pk;
ALTER TABLE jiveVCard ALTER COLUMN username NVARCHAR(64) NOT NULL; ALTER TABLE jiveVCard ALTER COLUMN username NVARCHAR(64) NOT NULL;
ALTER TABLE jiveVCard ADD CONSTRAINT JiveVCard_pk PRIMARY KEY (username); ALTER TABLE jiveVCard ADD CONSTRAINT JiveVCard_pk PRIMARY KEY (username);
DROP INDEX jivePrivacyList.jivePList_default_idx DROP INDEX jivePrivacyList.jivePList_default_idx;
ALTER TABLE jivePrivacyList DROP CONSTRAINT jivePrivacyList_pk; ALTER TABLE jivePrivacyList DROP CONSTRAINT jivePrivacyList_pk;
ALTER TABLE jivePrivacyList ALTER COLUMN username NVARCHAR(64) NOT NULL; ALTER TABLE jivePrivacyList ALTER COLUMN username NVARCHAR(64) NOT NULL;
ALTER TABLE jivePrivacyList ADD CONSTRAINT jivePrivacyList_pk PRIMARY KEY (username, name); ALTER TABLE jivePrivacyList ADD CONSTRAINT jivePrivacyList_pk PRIMARY KEY (username, name);
......
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