Skip to content
Snippets Groups Projects
Commit c1caabb5 authored by DELARUELLE Myriam's avatar DELARUELLE Myriam
Browse files

fix database character limit

parent 718a2b86
No related branches found
No related tags found
No related merge requests found
...@@ -38,6 +38,7 @@ define(['jquery', 'core/ajax', 'core/templates', 'core/str'], ...@@ -38,6 +38,7 @@ define(['jquery', 'core/ajax', 'core/templates', 'core/str'],
checkSelectActions(); checkSelectActions();
}) })
} }
}, },
//Si l'option de détails au clic est activée, on register l'événement du clic //Si l'option de détails au clic est activée, on register l'événement du clic
registerDetailsClick:function(){ registerDetailsClick:function(){
...@@ -79,7 +80,9 @@ define(['jquery', 'core/ajax', 'core/templates', 'core/str'], ...@@ -79,7 +80,9 @@ define(['jquery', 'core/ajax', 'core/templates', 'core/str'],
}); });
}) })
} },
} }
...@@ -117,4 +120,7 @@ define(['jquery', 'core/ajax', 'core/templates', 'core/str'], ...@@ -117,4 +120,7 @@ define(['jquery', 'core/ajax', 'core/templates', 'core/str'],
}); });
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<TABLE NAME="format_iena_options" COMMENT="Manage activity tracking table options"> <TABLE NAME="format_iena_options" COMMENT="Manage activity tracking table options">
<FIELDS> <FIELDS>
<FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true"/> <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true"/>
<FIELD NAME="optionname" TYPE="char" LENGTH="100" NOTNULL="true" SEQUENCE="false"/> <FIELD NAME="optionname" TYPE="char" LENGTH="20" NOTNULL="true" SEQUENCE="false"/>
<FIELD NAME="optionvalue" TYPE="int" LENGTH="1" NOTNULL="false" SEQUENCE="false"/> <FIELD NAME="optionvalue" TYPE="int" LENGTH="1" NOTNULL="false" SEQUENCE="false"/>
<FIELD NAME="courseid" TYPE="int" LENGTH="8" NOTNULL="true" SEQUENCE="false"/> <FIELD NAME="courseid" TYPE="int" LENGTH="8" NOTNULL="true" SEQUENCE="false"/>
<FIELD NAME="userid" TYPE="int" LENGTH="8" NOTNULL="true" SEQUENCE="false"/> <FIELD NAME="userid" TYPE="int" LENGTH="8" NOTNULL="true" SEQUENCE="false"/>
......
...@@ -94,7 +94,6 @@ function xmldb_format_iena_upgrade($oldversion) { ...@@ -94,7 +94,6 @@ function xmldb_format_iena_upgrade($oldversion) {
upgrade_plugin_savepoint(true, 2021070600, 'format', 'iena'); upgrade_plugin_savepoint(true, 2021070600, 'format', 'iena');
} }
if ($oldversion < 2024101505) { if ($oldversion < 2024101505) {
error_log("on passe dans l'ancienne version");
// Define field id to be added to format_iena. // Define field id to be added to format_iena.
$table2 = new xmldb_table('format_iena_options'); $table2 = new xmldb_table('format_iena_options');
$table2->add_field('id', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, XMLDB_SEQUENCE, null, null); $table2->add_field('id', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, XMLDB_SEQUENCE, null, null);
...@@ -109,12 +108,8 @@ function xmldb_format_iena_upgrade($oldversion) { ...@@ -109,12 +108,8 @@ function xmldb_format_iena_upgrade($oldversion) {
// Conditionally launch add field id. // Conditionally launch add field id.
if (!$dbman->table_exists($table2)) { if (!$dbman->table_exists($table2)) {
error_log("on ajoute la table");
$dbman->create_table($table2); $dbman->create_table($table2);
} }
else{
error_log("la table existe");
}
// Iena savepoint reached. // Iena savepoint reached.
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
<div class="table-wrapper"> <div class="table-wrapper">
<table id="suivi"> <table id="suivi">
<thead> <thead>
<tr id="modules"> <tr id="modules">
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
defined('MOODLE_INTERNAL') || die(); defined('MOODLE_INTERNAL') || die();
$plugin->version = 2024101504; $plugin->version = 2024101505;
$plugin->requires = 2014111000; $plugin->requires = 2014111000;
$plugin->component = 'format_iena'; $plugin->component = 'format_iena';
$plugin->release = "1.0"; $plugin->release = "1.0";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment