Commit 5693cc07 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Modified PK in jivePrivate to prevent MySQL PK lenght error. JM-728

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@4075 b35dd754-fafc-0310-a699-88a17e54d16e
parent 2260aded
...@@ -4,7 +4,11 @@ ...@@ -4,7 +4,11 @@
# Increase size of username field # Increase size of username field
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 MODIFY username VARCHAR(64); ALTER TABLE jivePrivate MODIFY username VARCHAR(64);
ALTER TABLE jivePrivate ADD PRIMARY KEY (username, name, namespace(100));
ALTER TABLE jiveOffline MODIFY username VARCHAR(64); ALTER TABLE jiveOffline MODIFY username VARCHAR(64);
ALTER TABLE jiveRoster MODIFY username VARCHAR(64); ALTER TABLE jiveRoster MODIFY username VARCHAR(64);
ALTER TABLE jiveVCard MODIFY username VARCHAR(64); ALTER TABLE jiveVCard MODIFY username VARCHAR(64);
......
...@@ -45,7 +45,7 @@ CREATE TABLE jivePrivate ( ...@@ -45,7 +45,7 @@ CREATE TABLE jivePrivate (
name VARCHAR(100) NOT NULL, name VARCHAR(100) NOT NULL,
namespace VARCHAR(200) NOT NULL, namespace VARCHAR(200) NOT NULL,
value TEXT NOT NULL, value TEXT NOT NULL,
PRIMARY KEY (username, name, namespace) PRIMARY KEY (username, name, namespace(100))
); );
CREATE TABLE jiveOffline ( CREATE TABLE jiveOffline (
......
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