MDL-52291 questions: fix upgrade from 2.5 and earlier
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 24 Nov 2015 23:19:30 +0000 (00:19 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 24 Nov 2015 23:19:30 +0000 (00:19 +0100)
commite716c18fb94b718c1b7c70b723ebe6b53478e2b7
tree6ec7d979a7898aae591ba5ccbd2874523d96f0e2
parent2b11b94c0ca3b8c7b352fd9abdc90b7fd21da0cd
MDL-52291 questions: fix upgrade from 2.5 and earlier

Because of some changes performed to the multichoice qtype
for Moodle 2.6, older sites are not able to upgrade properly.

This commits does introduce DB introspection to decide which
table and column names must be used. Nasty but enough.

Note MDL-52298 has been created about to avoid/minimize the
chances of this happening again.
question/type/multianswer/db/upgrade.php