Commit 56c400ff authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Increased size of username to 64.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@4037 b35dd754-fafc-0310-a699-88a17e54d16e
parent fb177ed3
// $Revision: $ // $Revision: $
// $Date: $ // $Date: $
// Increase size of username field
ALTER TABLE jiveUser ALTER COLUMN username VARCHAR(64);
ALTER TABLE jiveUserProp ALTER COLUMN username VARCHAR(64);
ALTER TABLE jivePrivate ALTER COLUMN username VARCHAR(64);
ALTER TABLE jiveOffline ALTER COLUMN username VARCHAR(64);
DROP INDEX jiveRoster_username_idx;
ALTER TABLE jiveRoster ALTER COLUMN username VARCHAR(64);
CREATE INDEX jiveRoster_username_idx ON jiveRoster (username);
ALTER TABLE jiveVCard ALTER COLUMN username VARCHAR(64);
DROP INDEX jivePList_default_idx;
ALTER TABLE jivePrivacyList ALTER COLUMN username VARCHAR(64);
CREATE INDEX jivePList_default_idx ON jivePrivacyList (username, isDefault);
UPDATE jiveVersion set version=9 where name = 'wildfire'; UPDATE jiveVersion set version=9 where name = 'wildfire';
# $Revision: $ # $Revision: $
# $Date: $ # $Date: $
# Increase size of username field
ALTER TABLE jiveUser MODIFY username VARCHAR(64);
ALTER TABLE jiveUserProp MODIFY username VARCHAR(64);
ALTER TABLE jivePrivate MODIFY username VARCHAR(64);
ALTER TABLE jiveOffline MODIFY username VARCHAR(64);
ALTER TABLE jiveRoster MODIFY username VARCHAR(64);
ALTER TABLE jiveVCard MODIFY username VARCHAR(64);
ALTER TABLE jivePrivacyList MODIFY username VARCHAR(64);
# Increase size of column digest_frequency in pubsubSubscription # Increase size of column digest_frequency in pubsubSubscription
ALTER TABLE pubsubSubscription MODIFY digest_frequency INT NOT NULL; ALTER TABLE pubsubSubscription MODIFY digest_frequency INT NOT NULL;
......
-- $Revision: $ -- $Revision: $
-- $Date: $ -- $Date: $
-- Increase size of username field
ALTER TABLE jiveUser MODIFY username VARCHAR2(64);
ALTER TABLE jiveUserProp MODIFY username VARCHAR2(64);
ALTER TABLE jivePrivate MODIFY username VARCHAR2(64);
ALTER TABLE jiveOffline MODIFY username VARCHAR2(64);
ALTER TABLE jiveRoster MODIFY username VARCHAR2(64);
ALTER TABLE jiveVCard MODIFY username VARCHAR2(64);
ALTER TABLE jivePrivacyList MODIFY username VARCHAR2(64);
UPDATE jiveVersion set version=9 where name = 'wildfire'; UPDATE jiveVersion set version=9 where name = 'wildfire';
-- $Revision: $ -- $Revision: $
-- $Date: $ -- $Date: $
-- Increase size of username field
ALTER TABLE jiveUser ADD COLUMN temp varchar(64);
UPDATE jiveUser SET temp = username;
ALTER TABLE jiveUser DROP CONSTRAINT jiveUser_pk;
ALTER TABLE jiveUser DROP COLUMN username;
ALTER TABLE jiveUser RENAME COLUMN temp to username;
ALTER TABLE jiveUser ALTER COLUMN "username" SET NOT NULL;
ALTER TABLE jiveUser ADD CONSTRAINT jiveUser_pk PRIMARY KEY (username);
ALTER TABLE jiveUserProp ADD COLUMN temp varchar(64);
UPDATE jiveUserProp SET temp = username;
ALTER TABLE jiveUserProp DROP CONSTRAINT jiveUserProp_pk;
ALTER TABLE jiveUserProp DROP COLUMN username;
ALTER TABLE jiveUserProp RENAME COLUMN temp to username;
ALTER TABLE jiveUserProp ALTER COLUMN "username" SET NOT NULL;
ALTER TABLE jiveUserProp ADD CONSTRAINT jiveUserProp_pk PRIMARY KEY (username, name);
ALTER TABLE jivePrivate ADD COLUMN temp varchar(64);
UPDATE jivePrivate SET temp = username;
ALTER TABLE jivePrivate DROP CONSTRAINT jivePrivate_pk;
ALTER TABLE jivePrivate DROP COLUMN username;
ALTER TABLE jivePrivate RENAME COLUMN temp to username;
ALTER TABLE jivePrivate ALTER COLUMN "username" SET NOT NULL;
ALTER TABLE jivePrivate ADD CONSTRAINT jivePrivate_pk PRIMARY KEY (username, name, namespace);
ALTER TABLE jiveOffline ADD COLUMN temp varchar(64);
UPDATE jiveOffline SET temp = username;
ALTER TABLE jiveOffline DROP CONSTRAINT jiveOffline_pk;
ALTER TABLE jiveOffline DROP COLUMN username;
ALTER TABLE jiveOffline RENAME COLUMN temp to username;
ALTER TABLE jiveOffline ALTER COLUMN "username" SET NOT NULL;
ALTER TABLE jiveOffline ADD CONSTRAINT jiveOffline_pk PRIMARY KEY (username, messageID);
ALTER TABLE jiveRoster ADD COLUMN temp varchar(64);
UPDATE jiveRoster SET temp = username;
DROP INDEX jiveRoster_username_idx;
ALTER TABLE jiveRoster DROP COLUMN username;
ALTER TABLE jiveRoster RENAME COLUMN temp to username;
ALTER TABLE jiveRoster ALTER COLUMN "username" SET NOT NULL;
CREATE INDEX jiveRoster_username_idx ON jiveRoster (username);
ALTER TABLE jiveVCard ADD COLUMN temp varchar(64);
UPDATE jiveVCard SET temp = username;
ALTER TABLE jiveVCard DROP CONSTRAINT jiveVCard_pk;
ALTER TABLE jiveVCard DROP COLUMN username;
ALTER TABLE jiveVCard RENAME COLUMN temp to username;
ALTER TABLE jiveVCard ALTER COLUMN "username" SET NOT NULL;
ALTER TABLE jiveVCard ADD CONSTRAINT jiveVCard_pk PRIMARY KEY (username);
ALTER TABLE jivePrivacyList ADD COLUMN temp varchar(64);
UPDATE jivePrivacyList SET temp = username;
ALTER TABLE jivePrivacyList DROP CONSTRAINT jivePrivacyList_pk;
DROP INDEX jivePList_default_idx;
ALTER TABLE jivePrivacyList DROP COLUMN username;
ALTER TABLE jivePrivacyList RENAME COLUMN temp to username;
ALTER TABLE jivePrivacyList ALTER COLUMN "username" SET NOT NULL;
ALTER TABLE jivePrivacyList ADD CONSTRAINT jivePrivacyList_pk PRIMARY KEY (username, name);
CREATE INDEX jivePList_default_idx ON jivePrivacyList (username, isDefault);
UPDATE jiveVersion set version=9 where name = 'wildfire'; UPDATE jiveVersion set version=9 where name = 'wildfire';
/* $Revision: $ */ /* $Revision: $ */
/* $Date: $ */ /* $Date: $ */
/* Increase size of username field */
ALTER TABLE jiveUser DROP CONSTRAINT jiveUser_pk;
ALTER TABLE jiveUser ALTER COLUMN username NVARCHAR(64) NOT NULL;
ALTER TABLE jiveUser ADD CONSTRAINT jiveUser_pk PRIMARY KEY (username);
ALTER TABLE jiveUserProp DROP CONSTRAINT jiveUserProp_pk;
ALTER TABLE jiveUserProp ALTER COLUMN username NVARCHAR(64) NOT NULL;
ALTER TABLE jiveUserProp ADD CONSTRAINT jiveUserProp_pk PRIMARY KEY (username, name);
ALTER TABLE jivePrivate DROP CONSTRAINT JivePrivate_pk;
ALTER TABLE jivePrivate ALTER COLUMN username NVARCHAR(64) NOT NULL;
ALTER TABLE jivePrivate ADD CONSTRAINT JivePrivate_pk PRIMARY KEY (username, name, namespace);
ALTER TABLE jiveOffline DROP CONSTRAINT jiveOffline_pk;
ALTER TABLE jiveOffline ALTER COLUMN username NVARCHAR(64) NOT NULL;
ALTER TABLE jiveOffline ADD CONSTRAINT jiveOffline_pk PRIMARY KEY (username, messageID);
DROP INDEX jiveRoster.jiveRoster_username_idx
ALTER TABLE jiveRoster ALTER COLUMN username NVARCHAR(64) NOT NULL;
CREATE INDEX jiveRoster_username_idx ON jiveRoster (username ASC);
ALTER TABLE jiveVCard DROP CONSTRAINT JiveVCard_pk;
ALTER TABLE jiveVCard ALTER COLUMN username NVARCHAR(64) NOT NULL;
ALTER TABLE jiveVCard ADD CONSTRAINT JiveVCard_pk PRIMARY KEY (username);
DROP INDEX jivePrivacyList.jivePList_default_idx
ALTER TABLE jivePrivacyList DROP CONSTRAINT jivePrivacyList_pk;
ALTER TABLE jivePrivacyList ALTER COLUMN username NVARCHAR(64) NOT NULL;
ALTER TABLE jivePrivacyList ADD CONSTRAINT jivePrivacyList_pk PRIMARY KEY (username, name);
CREATE INDEX jivePList_default_idx ON jivePrivacyList (username, isDefault);
UPDATE jiveVersion set version=9 where name = 'wildfire'; UPDATE jiveVersion set version=9 where name = 'wildfire';
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