Upgrade to 17.04 fails on Postgres 8
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Me again (https:/
Upgrading from 15.10.1 to mahara-17.04.2. (Postgres 8.4.)
Running upgrade.php, auth.webservice step results in "Failed to upgrade."
Apache error Log (xxxx = redacted):
-------
xxxx [DBG] da (lib/dml.php:157) postgres8 error: [-1: ERROR: function left(character varying, integer) does not exist at character 73, referer: xxxx
xxxx [DBG] da (lib/dml.php:157) HINT: No function matches the given name and argument types. You might need to add explicit type casts.] in adodb_throw(UPDATE "external_
-------
Looks like it's here:
auth/webservice
-------
execute_sql(
"UPDATE {external_
SET
)
WHERE
AND RIGHT(
) = '{$oldtail}'
"
);
-------
Apparently functions left() and right() appeared in pg 9.3.
Is there a workaround for this on pg8?
Cheers,
Marcus
description: | updated |
Mahara 17.04 requires Postgres 9.1 at minimum. Please upgrade. The Readme file has been fixed to mention the correct version (to be pushed out with next minor point release).