reference/docs/conversionfolder of the release or in our SVN repository.
In the same directory you will also find conversion scripts for earlier Sakai releases. Migration from an earlier version will require the successive application of all intermediate scripts (see the following table). You cannot, for example, move from 2.6.1 to 2.9.0 by applying a single script. You will need to run 6 or 7 scripts all in a row.
Note for oracle, some of the scripts will leave your indexes in an invalid state because of LONG->CLOB conversion. You will need to run this script to find the invalid/unusable indexes, THEN run the result of this script to alter these indexes.
select 'alter index '||index_name||' rebuild online;' from user_indexes where status = 'INVALID' or status = 'UNUSABLE';
-- Run the resulting SQL commands this script generates if any)
As a general rule, be sure to read through the conversion scripts before applying them. The conversion scripts are generic in the sense that they do not take into account any special customizations you may have made - such as new roles, or the deployment of additional tools or if you are migrating from 2.4.x - and they may complicate your migration with unintended consequences if you execute them blindly.
For conversions prior to 2.6 please see the 2.8 install guide. Conversions from much older are not very well supported or tested but should still work.
Use scripts updated in 2.6.x branch (r65964+). Include fixes for - SAK-16751Getting issue details... STATUS , - SAK-16753Getting issue details... STATUS and - SAK-16809Getting issue details... STATUS . If you are upgrading from 2.5 please review - SAK-15597Getting issue details... STATUS for an important property setting issue (not a database conversion issue).
2.6.0 to 2.6.x
2.6.0 to 2.6.x
SAK-17219Getting issue details...
SAK-16548Getting issue details...
: Matt Jones (UMich) reports that the original 2.6.0 to 2.6.1 conversion script for the
2.6.0 to 2.6.x
2.6.0 to 2.6.x
2.6.0 to 2.6.1
Rollup of 2.6.0-2.6.x conversion scripts 001-004 above.
2.6.1 to 2.6.2
no schema changes
2.6.0 to 2.6.x
2.7.1 to 2.8.0 database conversion.
Starting up sakai-2.8.0 in order to populate an empty database (auto.ddl=true) can result in certain tools relying on Hibernate 3.2.7.ga to generate indexes to fail to do so. Check database and then run this script to add missing indexes.
|2.8.1||sakai_2_8_0-2_8_1_mysql_conversion.sql||sakai_2_8_0-2_8_1_oracle_conversion.sql||Conversion from 2.8.0 to 2.8.1 can result in lost mail messages. See - SAK-21305Getting issue details... STATUS for details on how to fix.This should only affect cases for which 2.8.0 was actually RUN in production, not if 2.8.0 is just one step in your upgrade process.|
|2.9.0||sakai_2_9_0_mysql_conversion.sql||sakai_2_9_0_oracle_conversion.sql||For languages other than English, Catalan and Spanish please see - SAM-787Getting issue details... STATUS .|
|10.0||sakai_10_mysql.sql||sakai_10_oracle.sql||Please note, the Oracle conversion scripts should be taken from trunk at the moment, including for the conversion to 10.0 - Neal Caidin - 14-October-2014|
|10.2||no conversion needed for MySql||sakai_10_1-10_2_oracle_conversion.sql|
|10.3||no conversion needed for MySql||sakai_10_2-10_3_oracle_conversion.sql|
|10.4||no conversion needed for MySql||no conversion needed for Oracle|
2.1邮件存档 (2.5 -> 2.6)
mailarchive-runconversion.shscript that can be found in the mailarchive module in order to update your existing mail archive data to take advantage of the 2.6 Email Archive performance improvements.
2.2 作业工具 (2.4之前版本）
- SAK-11821Getting issue details... STATUS : The assignment service previously permitted the creation of duplicate submission objects (i.e. two or more submissions for the same student and assignment). While the UI should prevent this from happening, at various stages in the evolution of the Assignments code, bugs, race conditions or other failures have led to duplicate objects being created. This conversion seeks to reconcile those duplicates and add database constraints to prevent this is the future.
In summary, the conversion script is necessary to
- Remove existing duplicate submission records, if any
- Prevent future submission duplicates by applying unique constraint on the ASSIGNMENT_SUBMISSION table
- Improve performance of the Assignment tool
The conversion script does the following to the existing ASSIGNMENT_SUBMISSION table in Sakai database:
- read in all tuples as AssignmentSubmission object, parse out data such as submitter_id, submit_time, submitted, and graded, and stores those attributes as separate columns in the ASSIGNMENT_SUBMISSION table;
- Runs though the table, combine and remove submission duplicates (tuples with same "context" and "submitter_id" combination);
- apply the unique constraint of "context" + "submitter_id" to ASSIGNMENT_SUBMISSION table.
There is a README file with detailed instructions on this process at https://source.sakaiproject.org/svn/assignment/tags/sakai_2-7-0.
2.3 文件存储 （2.4 -> 2.5)
The new columns added to the database tables support a switch from XML serialization to "binary-entity" serialization, and enable Resources to perform faster and use less memory. One of the key areas this impacts is improving the performance of quota calculations.
There are two methods for converting existing Resources, with the first being the recommended option, as it enables all performance improvements when completed:
- Run the conversion utility, which can be run on a live system. (See readme for more details.)
- Systems running oracle should read the email threads copied to the comments section below.
- Let the code convert each Resource as it is accessed.
- This is only recommended for implementations with small datasets, such as pilot deployments; otherwise you should use the above conversion utility.
- While some performance benefits from the binary-entity serialization can be realized immediately using this method, others, such as the quota calculation improvements will not be available until all Resources have been accessed and converted.
Based on the state of the data in the Content Hosting Service tables, it will start up in one of two modes:
- Binary only - If the code detects on start-up that all of the XML fields are null – as would be the case after running the conversion utility – it will run in binary mode. The means the system will only read and write using binary-entity serialization, and you will be able to fully realize all the performance enhancements that it offers.
- Dual mode - If the code detects there is still data in the XML fields – as would be the case if the conversion utility has not be run – it will run in dual mode. This means the system will be capable of reading both XML-serialized and binary-entity-serialized resources, but will write using only binary, and will convert any XML data it encounters into binary data. This gives you some of the performance benefits of binary-entity serialization without running the conversion utility, but you will never get the quota-calculation improvements unless all Resources end up converted.
3.0 学档 (OSP) 权限设置 (2.5之前版本)
OSP was turned off by default in Sakai 10 and removed entirely in Sakai 11.
SAK-13205Getting issue details...
: if you are upgrading from a pre-2.5.0 version of Sakai, then you need to force conversion of the OSP permissions by setting
osp.upgrade25=true in your
sakai.properties file. (See also discussion.)
4.0 Sakai 10 中移除了 链接工具
5.0 升级 Sakai 皮肤