I am trying to upgrade Orbeon forms from version 2017.2 CE to the latest one (2019.1 CE) using a MariaDB (10.1) relational database and I'm getting the following error message when I run the upgrade scripts:
Specified key was too long; max key length is 767 bytes
I suppose that this is caused by the fact that the indexes that are to be created contain multiple fields with VARCHAR(255) using the collation utf8mb4.
In this case, is there any available workaround?
You're correct: this is due to a combination of the indexes containing multiple strings, utf8mb4
now being used to store text, and the version of MariaDB you are on limiting the size of the max key length to 767 bytes. You can solve this issue either by:
utf8
character set instead of utf8mb4
.For more on this, see the first bullet point in the MySQL versions section.