芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/public_html/cepali/mod/data/db/upgrade.php
get_manager(); if ($oldversion < 2017032800) { // Define field completionentries to be added to data. Require a number of entries to be considered complete. $table = new xmldb_table('data'); $field = new xmldb_field('completionentries', XMLDB_TYPE_INTEGER, '10', null, null, null, '0', 'config'); // Conditionally launch add field timemodified. if (!$dbman->field_exists($table, $field)) { $dbman->add_field($table, $field); } // Data savepoint reached. upgrade_mod_savepoint(true, 2017032800, 'data'); } // Automatically generated Moodle v3.3.0 release upgrade line. // Put any upgrade step following this. // Automatically generated Moodle v3.4.0 release upgrade line. // Put any upgrade step following this. // Automatically generated Moodle v3.5.0 release upgrade line. // Put any upgrade step following this. // Automatically generated Moodle v3.6.0 release upgrade line. // Put any upgrade step following this. // Automatically generated Moodle v3.7.0 release upgrade line. // Put any upgrade step following this. if ($oldversion < 2019052001) { $columns = $DB->get_columns('data'); $oldclass = "mod-data-default-template ##approvalstatus##"; $newclass = "mod-data-default-template ##approvalstatusclass##"; // Update existing classes. $DB->replace_all_text('data', $columns['singletemplate'], $oldclass, $newclass); $DB->replace_all_text('data', $columns['listtemplate'], $oldclass, $newclass); $DB->replace_all_text('data', $columns['addtemplate'], $oldclass, $newclass); $DB->replace_all_text('data', $columns['rsstemplate'], $oldclass, $newclass); $DB->replace_all_text('data', $columns['asearchtemplate'], $oldclass, $newclass); // Data savepoint reached. upgrade_mod_savepoint(true, 2019052001, 'data'); } return true; }