Skip to content

Commit

Permalink
Moodle plugin CI: Fixes for failing codechecker
Browse files Browse the repository at this point in the history
  • Loading branch information
jnlar committed Dec 21, 2022
1 parent 9d2d735 commit ea0818a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ function xmldb_report_customsql_upgrade($oldversion) {
$table->add_field('id', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, XMLDB_SEQUENCE, null, null);
$table->add_field('name', XMLDB_TYPE_CHAR, '255', null, XMLDB_NOTNULL, null, null, null);

// If the 'name' field already exists, ensure its constraint is set to NOTNULL
// If the 'name' field already exists, ensure its constraint is set to NOTNULL.
if ($dbman->field_exists($table, $table->getField('name'))) {
$dbman->change_field_notnull($table, $table->getField('name'));
}
Expand Down Expand Up @@ -274,5 +274,5 @@ function xmldb_report_customsql_upgrade($oldversion) {
upgrade_plugin_savepoint(true, 2022031801, 'report', 'customsql');
}

return true;
return true;
}
2 changes: 1 addition & 1 deletion tests/local/category_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* @copyright 2021 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class _category_test extends \advanced_testcase {
class category_test extends \advanced_testcase {
/**
* Test create category.
*/
Expand Down

0 comments on commit ea0818a

Please sign in to comment.