Openbadges fails to install table on upgrade

Bug #1770069 reported by Robert Lyon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Invalid
Undecided
Unassigned

Bug Description

A user got this error

  Upgrade openbadgedisplayer plugin
  mysqli error: [1050: Table 'blocktype_openbadgedisplayer_data' already exists]

I believe it is because one could install openbadgedisplayer plugin as a thirdparty plugin.

And so when they tried to upgrade they found because it is shipped as part of the core files the plugin tries to try and install again.

The bit of code to create the blocktype_openbadgedisplayer_data table should have a check to see if the table already exists.

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "17.10_STABLE" branch: https://reviews.mahara.org/8839

Revision history for this message
Mahara Bot (dev-mahara) wrote :

Patch for "master" branch: https://reviews.mahara.org/8840

Revision history for this message
Robert Lyon (robertl-9) wrote :

The forum post relating to the creation of his bug https://mahara.org/interaction/forum/topic.php?id=8246#post33008

Robert Lyon (robertl-9)
Changed in mahara:
status: In Progress → Invalid
milestone: 18.10.0 → none
assignee: Robert Lyon (robertl-9) → nobody
importance: High → Undecided
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.