mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-37490 mod_assign: Add setting to show the due date on the course page.
This commit is contained in:
parent
b3be471f52
commit
ef8a6dfb33
9 changed files with 69 additions and 8 deletions
|
@ -207,6 +207,17 @@ function xmldb_assign_upgrade($oldversion) {
|
|||
|
||||
// Moodle v2.4.0 release upgrade line.
|
||||
// Put any upgrade step following this.
|
||||
if ($oldversion < 2012112902) {
|
||||
// Define field displayduedate to be added to assign.
|
||||
$table = new xmldb_table('assign');
|
||||
$field = new xmldb_field('displayduedate', XMLDB_TYPE_INTEGER, '2', null, null, null, '0', 'duedate');
|
||||
if (!$dbman->field_exists($table, $field)) {
|
||||
$dbman->add_field($table, $field);
|
||||
}
|
||||
|
||||
// Assign savepoint reached.
|
||||
upgrade_mod_savepoint(true, 2012112902, 'assign');
|
||||
}
|
||||
|
||||
if ($oldversion < 2013030600) {
|
||||
upgrade_set_timeout(60*20);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue