Which Foreign Key constraints does JIRA enforce in the Database (MySQL)?

MartinS
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 9, 2013

We have recently converted a JIRA 4.1 Installation from using MyISAM to using InnoDB. When doing the same for Confluence, foreign key constraints have to be added. However, it seems that a fresh installation of JIRA 4.1 does not create any foreign key constraints at all.

When upgrading to 6.0, only a few constraints are created for Active Objects, but none for "internal" JIRA Tables.

The information on the web is very slim, only a pdf by a third party can be found easyily, which claims that "the JIRA database does not enforce foreign keys and does not actually use the same data type for foreign keys in all cases".

Is that correct? Do I need to create no foreign key constraints after switching from MyISAM to InnoDB?

1 answer

0 votes
Julian Riedinger _Decadis AG_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 9, 2013

no, you haven't ... The correlations were implemented internally in JIRA

MartinS
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 16, 2013

I am willing to accept the answer if

  1. You reformulate "no, you haven't" - that is no sentence and has no reference to the question
  2. You give a reference

Suggest an answer

Log in or Sign up to answer