JIRA Upgrade from Versions 3.9 or Below Fails due to Database Schema Change
症状
If using the Alternative method of upgrading JIRA rather than the recommended method from a version prior to JIRA 3.9, the upgrade may fail with the following error message:
org.ofbiz.core.entity.GenericDataSourceException: SQL Exception while executing the following:SELECT ID, trigger_id, cronExperssion FROM qrtz_cron_triggers (Invalid column name 'cronExperssion'.)
原因
This occurs due to database schema changes in JIRA 3.9.
ソリューション
There are two solutions to this problem:
- Use the recommended method to upgrade.
- If unable to use the XML backup, modify the database schema directly:
mysql> alter table qrtz_cron_triggers drop column CRON_EXPERSSION; mysql> ALTER TABLE qrtz_cron_triggers ADD cronExperssion varchar(255);
Last modified on Mar 30, 2016
Powered by Confluence and Scroll Viewport.