mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +02:00
Revert "MDL-37490 Assign: Minor patch cleanup"
This reverts commit 06b9df1145
.
This commit is contained in:
parent
2b46a31a3f
commit
3e69c074ac
4 changed files with 21 additions and 18 deletions
|
@ -206,6 +206,19 @@ 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);
|
||||
|
||||
|
@ -420,17 +433,7 @@ function xmldb_assign_upgrade($oldversion) {
|
|||
}
|
||||
|
||||
// Moodle v2.5.0 release upgrade line.
|
||||
if ($oldversion < 2013050100) {
|
||||
// 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, 2013050100, 'assign');
|
||||
}
|
||||
// Put any upgrade step following this.
|
||||
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue