Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'MDL-57756-text-customparams-38' of https://github.com/c…
…engage/moodle into MOODLE_38_STABLE
  • Loading branch information
stronk7 committed Oct 19, 2020
2 parents 34ea79f + 6d79bed commit 3a12cb5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mod/lti/db/install.xml
Expand Up @@ -20,7 +20,7 @@
<FIELD NAME="instructorchoicesendemailaddr" TYPE="int" LENGTH="1" NOTNULL="false" SEQUENCE="false" COMMENT="Send user's email"/>
<FIELD NAME="instructorchoiceallowroster" TYPE="int" LENGTH="1" NOTNULL="false" SEQUENCE="false" COMMENT="Allow the roster to be retrieved"/>
<FIELD NAME="instructorchoiceallowsetting" TYPE="int" LENGTH="1" NOTNULL="false" SEQUENCE="false" COMMENT="Allow a tool to store a setting"/>
<FIELD NAME="instructorcustomparameters" TYPE="char" LENGTH="255" NOTNULL="false" SEQUENCE="false" COMMENT="Additional custom parameters provided by the instructor"/>
<FIELD NAME="instructorcustomparameters" TYPE="text" NOTNULL="false" SEQUENCE="false" COMMENT="Additional custom parameters provided by the instructor"/>
<FIELD NAME="instructorchoiceacceptgrades" TYPE="int" LENGTH="1" NOTNULL="false" SEQUENCE="false" COMMENT="Accept grades from tool"/>
<FIELD NAME="grade" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="100" SEQUENCE="false" COMMENT="Grade scale"/>
<FIELD NAME="launchcontainer" TYPE="int" LENGTH="2" NOTNULL="true" DEFAULT="1" SEQUENCE="false" COMMENT="Launch external tool in a pop-up"/>
Expand Down
14 changes: 14 additions & 0 deletions mod/lti/db/upgrade.php
Expand Up @@ -224,5 +224,19 @@ function xmldb_lti_upgrade($oldversion) {
// Automatically generated Moodle v3.8.0 release upgrade line.
// Put any upgrade step following this.

if ($oldversion < 2019111801) {

// Changing type of field instructorcustomparameters on table lti to text.
$table = new xmldb_table('lti');
$field = new xmldb_field('instructorcustomparameters', XMLDB_TYPE_TEXT, null, null, null, null, null,
'instructorchoiceallowsetting');

// Launch change of type for field value.
$dbman->change_field_type($table, $field);

// Lti savepoint reached.
upgrade_mod_savepoint(true, 2019111801, 'lti');
}

return true;
}
2 changes: 1 addition & 1 deletion mod/lti/version.php
Expand Up @@ -48,7 +48,7 @@

defined('MOODLE_INTERNAL') || die;

$plugin->version = 2019111800; // The current module version (Date: YYYYMMDDXX).
$plugin->version = 2019111801; // The current module version (Date: YYYYMMDDXX).
$plugin->requires = 2019111200; // Requires this Moodle version.
$plugin->component = 'mod_lti'; // Full name of the plugin (used for diagnostics).
$plugin->cron = 0;

0 comments on commit 3a12cb5

Please sign in to comment.