Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Verified Commit d4a69e07 authored by David Beniamine's avatar David Beniamine
Browse files

Add missing field grade, Closes #1

parent 6cda7b43
<?xml version="1.0" encoding="UTF-8" ?>
<XMLDB PATH="mod/labnbook/db" VERSION="20190402" COMMENT="XMLDB file for Moodle mod/labnbook"
<XMLDB PATH="mod/labnbook/db" VERSION="20210519" COMMENT="XMLDB file for Moodle mod/labnbook"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../lib/xmldb/xmldb.xsd"
>
......@@ -15,6 +15,7 @@
<FIELD NAME="labnbook_teamconfigid" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false" COMMENT="LabNbook DB: team_config.id_team_config"/>
<FIELD NAME="timecreated" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
<FIELD NAME="timemodified" TYPE="int" LENGTH="10" NOTNULL="false" DEFAULT="0" SEQUENCE="false"/>
<FIELD NAME="grade" TYPE="int" LENGTH="11" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
</FIELDS>
<KEYS>
<KEY NAME="primary" TYPE="primary" FIELDS="id"/>
......
......@@ -28,6 +28,11 @@ function xmldb_labnbook_upgrade($oldversion)
// Launch rename field course.
$dbman->rename_field($table, $field, 'course');
}
if ($oldversion < 2021051900) {
$table = new xmldb_table('labnbook');
$field = new xmldb_field('grade', XMLDB_TYPE_INTEGER, '11', null, XMLDB_NOTNULL, null, '0', null);
$dbman->add_field($table, $field);
}
// For further information please read the Upgrade API documentation:
// https://docs.moodle.org/dev/Upgrade_API
......
......@@ -9,8 +9,8 @@
\defined('MOODLE_INTERNAL') || die();
$plugin->component = 'mod_labnbook';
$plugin->release = '0.1.6';
$plugin->version = 2021010500;
$plugin->release = '0.1.7';
$plugin->version = 2021051900;
$plugin->requires = 2018051700;
$plugin->maturity = MATURITY_RC;
$plugin->supported = [35];
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment