click here for details... Sakai Executive Director Position Search now open
Issue Details (XML | Word | Printable)

Key: SAK-16809
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Matthew Jones
Reporter: James Marca
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Sakai

2.6.0 upgrade script has index, column add in wrong order, related to SAK-16554

Created: 11-Aug-2009 09:25   Updated: 29-Sep-2009 06:45
Component/s: Reference
Affects Version/s: 2.6.0
Fix Version/s: 2.6.1

Time Tracking:
Not Specified

Environment: the lastest svn pull of sakai, sakai_2_6_0_mysql_conversion.sql, current as of revision 65133
Issue Links:
Relate
 

2.6.x Status: Closed
2.5.x Status: None
2.4.x Status: None


 Description  « Hide
The current conversion script reads

-- SAK-13584 Further Improve the Performance of the Email Archive and Message API. Note you have to run a bash conversion script on your old mail archive data for it to
-- appear in the new mail archive. The script is in the source as mailarchive-runconversion.sh. Please see the SAK for more information on this script or SAK-16554 for
-- updates to this script.

CREATE INDEX IE_MAILARC_SUBJECT ON MAILARCHIVE_MESSAGE
(
       SUBJECT ASC
);
ALTER TABLE MAILARCHIVE_MESSAGE ADD COLUMN (
       SUBJECT VARCHAR (255) NULL,
       BODY LONGTEXT NULL
);

This fails when I apply it, because the column subject does not exist and therefore cannot be indexed.

I had to flip the order to

ALTER TABLE MAILARCHIVE_MESSAGE ADD COLUMN (
       SUBJECT VARCHAR (255) NULL,
       BODY LONGTEXT NULL
);
CREATE INDEX IE_MAILARC_SUBJECT ON MAILARCHIVE_MESSAGE
(
       SUBJECT ASC
);



 All   Comments   Work Log   Change History   Subversion Commits   git Commits      Sort Order: Ascending order - Click to sort in descending order
Matthew Jones added a comment - 20-Aug-2009 13:43
This was also confirmed by this email:
http://collab.sakaiproject.org/pipermail/sakai-dev/2009-July/002439.html

This is fixed in trunk and in 2.6.x.