MySource Matrix Resources

Main Content

Upgrading MySource Matrix from v3.14.10 to v3.14.11

Introduction

This guide will help you upgrade an existing MySource Matrix version 3.14.10 installation to version 3.14.11.

This upgrade requires you to have access to:

  • update the MySource Matrix source code
  • upgrade MySource Matrix configuration files

This guide assumes that your MySource Matrix installation is located at /home/websites/mysource_matrix. Please change any commands to the appropriate location if your installation is located elsewhere.

If your system contains the commercial or premium modules, please contact Squiz for updated versions of the modules before proceeding with the upgrade.

The modules must be upgraded at the same time as the core system.

Backup

Before starting any upgrade, always backup your MySource Matrix installation. See the MySource Matrix backup management guide for information on how to backup your MySource Matrix system.

Getting the New Source Code

The first thing you need to do is update the MySource Matrix source code. You can find out how to download the latest stable version of MySource Matrix on the installation page.

Once you have downloaded the source code, you need replace the existing code with the newer version. This will not reset any configuration options or remove any content from your system.

These steps assume MySource Matrix is installed at /home/websites/mysource_matrix and that a tar.gz archive with the new source code exists within /home/websites
$ cd /home/websites
$ mv mysource_matrix mysource_matrix_3-14-10
$ tar -xzvf new_source.tar.gz
$ cd mysource_matrix
$ cp -r /home/websites/mysource_matrix_3-14-10/data .

Run Thesaurus Upgrade Queries

A new primary key has been created for the Thesaurus Term Notes table. However, this requires the data type of the "value" field to be changed to a varchar rather than a long "text" field, so that Oracle can index it without error. (This will truncate notes beyond 4000 characters, however we are not aware of systems using thesaurus terms of that length.)

The queries are slightly different for each database; please run ONLY the queries for your database system.

PostgreSQL Database
BEGIN;

ALTER TABLE sq_thes_term_note ADD COLUMN temp VARCHAR(4000);
UPDATE sq_thes_term_note SET temp = SUBSTR(value, 1, 4000);
ALTER TABLE sq_thes_term_note DROP COLUMN value;
ALTER TABLE sq_thes_term_note RENAME temp TO value;

ALTER TABLE sq_thes_term_note
    ADD PRIMARY KEY (termid, name, thesid, value);

COMMIT;
Oracle Database
ALTER TABLE sq_thes_term_note ADD temp VARCHAR(4000);
UPDATE sq_thes_term_note SET temp = SUBSTR(value, 1, 4000);
ALTER TABLE sq_thes_term_note DROP COLUMN value;
ALTER TABLE sq_thes_term_note RENAME COLUMN temp TO value;

ALTER TABLE sq_thes_term_note
    ADD PRIMARY KEY (termid, name, thesid, value);

COMMIT;

Full System Upgrade

Now, the system's installation scripts should be run to ensure the asset types and language translations are up to date.

$ php install/step_02.php /home/websites/mysource_matrix
$ php install/step_03.php /home/websites/mysource_matrix
$ php install/compile_locale.php /home/websites/mysource_matrix

Upgrade Complete

Your upgrade to MySource Matrix version 3.14.11 should now be complete.