Reviewed:  https://reviews.mahara.org/c/mahara/+/12888
Committed: 
https://git.mahara.org/mahara/mahara/commit/38122cfcdb064f53d7cddf77aa60499c9b6634c5
Submitter: "Robert Lyon <robe...@catalyst.net.nz>"
Branch:    main

commit 38122cfcdb064f53d7cddf77aa60499c9b6634c5
Author: Bruno Malaval <bruno.mala...@uha.fr>
Date:   Thu Jun 16 16:16:17 2022 +1200

Bug 1978300: Fix SQL syntax in db upgrade step

22.04 upgrade was failing due to
missing use of dbprefix syntax (curly braces)

Needs cherry-picking onto 20.10, 21.04, 21.10 and 22.04

Change-Id: I5f7c0adba793fc0f610e01f9fcd23f7e70564b3b

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: mahara-contributors
https://bugs.launchpad.net/bugs/1978300

Title:
  Mahara 22.04 upgrade fails due to missing use of dbprefix syntax

Status in Mahara:
  New
Status in Mahara 21.04 series:
  New
Status in Mahara 21.10 series:
  New
Status in Mahara 22.04 series:
  New
Status in Mahara 22.10 series:
  New

Bug description:
  Mahara 22.04.1

  Upgrade failed when using "$cfg->dbprefix" in config.php due to missing 
brackets in
  lib/dp/upgrade.php :

  Line 842
  execute_sql("UPDATE artefact SET title = ? WHERE id = ?", 
array($record->email, $record->id));

  need to be
  execute_sql("UPDATE {artefact} SET title = ? WHERE id = ?", 
array($record->email, $record->id));

  Thanks

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1978300/+subscriptions


_______________________________________________
Mailing list: https://launchpad.net/~mahara-contributors
Post to     : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp

Reply via email to