Documentation for JIRA 5.2. Documentation for other versions of JIRA is available too. 
![]()
If you are using the MySQL or Oracle database, two column data types have been changed as described in the JIRA 4.0 Database Schema Changes for MySQL and Oracle section below.
The easiest way to upgrade to JIRA 4.0 is to perform an XML backup and restore as described in the Migrating JIRA to Another Server instructions.
If in the past, instead of performing an XML backup and restore, you have been upgrading by "pointing" the new version of JIRA at an old database, this is still possible. However, the procedure is more complicated. You will need to use SQL scripts to perform database schema changes.
mysqldump --opt db_name > db_name.sql
mysqldump --opt jiradb > jiradb_before4.sqlmysql --user=username --password=password db_name < mysql_4_0.sql
mysql --user=root --password=password jiradb < mysql_4_0.sqlNote: The following warnings regarding database changes can be ignored. They will only appear the first time you start JIRA after upgrading your JIRA database to 4.0.
main WARN [core.entity.jdbc.DatabaseUtil] Entity "ExternalGadget" has no table in the database main WARN [core.entity.jdbc.DatabaseUtil] Entity "GadgetUserPreference" has no table in the database main WARN [core.entity.jdbc.DatabaseUtil] Entity "Issue" has 24 fields but table "jiraissue" has 23 columns. main WARN [core.entity.jdbc.DatabaseUtil] Field "resolutiondate" of entity "Issue" is missing its corresponding column "RESOLUTIONDATE" main WARN [core.entity.jdbc.DatabaseUtil] Entity "PortletConfiguration" has 7 fields but table "portletconfiguration" has 6 columns. main WARN [core.entity.jdbc.DatabaseUtil] Field "gadgetXml" of entity "PortletConfiguration" is missing its corresponding column "GADGET_XML"
SQL*Plus: Release 10.2.0.1.0 - Production on Thu Oct 19 12:56:11 2006 Copyright (c) 1982, 2005, Oracle. All rights reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production With the Partitioning, OLAP and Data Mining options SQL> @/home/oracle/oracle_4_0.sql
Note: The following warnings regarding database changes can be ignored. They will only appear the first time you start JIRA after upgrading your JIRA database to 4.0.
main WARN [core.entity.jdbc.DatabaseUtil] Entity "ExternalGadget" has no table in the database main WARN [core.entity.jdbc.DatabaseUtil] Entity "GadgetUserPreference" has no table in the database main WARN [core.entity.jdbc.DatabaseUtil] Entity "Issue" has 24 fields but table "jiraissue" has 23 columns. main WARN [core.entity.jdbc.DatabaseUtil] Field "resolutiondate" of entity "Issue" is missing its corresponding column "RESOLUTIONDATE" main WARN [core.entity.jdbc.DatabaseUtil] Entity "PortletConfiguration" has 7 fields but table "portletconfiguration" has 6 columns. main WARN [core.entity.jdbc.DatabaseUtil] Field "gadgetXml" of entity "PortletConfiguration" is missing its corresponding column "GADGET_XML"
The table below summarises the changes to the database schema. Please note that if you have developed any custom utilities which query or modify the JIRA database directly (i.e. without using the JIRA API), you need to check whether the utilities need to be updated.
The following database column data types have been changed. Their column name, old and new data types, as well as the database table they belong to, are shown below:
For MySQL:
TABLE NAME |
COLUMN NAME |
OLD DATA TYPE |
NEW DATA TYPE |
|---|---|---|---|
propertytext |
propertyvalue |
TEXT |
LONGTEXT |
searchrequest |
reqcontent |
TEXT |
LONGTEXT |
For Oracle:
TABLE NAME |
COLUMN NAME |
OLD DATA TYPE |
NEW DATA TYPE |
|---|---|---|---|
propertytext |
propertyvalue |
VARCHAR2 |
CLOB |
searchrequest |
reqcontent |
VARCHAR2 |
CLOB |