Skip to content

Commit

Permalink
fix upgrade.php - field default value
Browse files Browse the repository at this point in the history
  • Loading branch information
razawa committed Jul 4, 2024
1 parent e5dec91 commit 46e9c47
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -1152,18 +1152,6 @@ function block_exaport_wrong_personal_information_upgrade_2012120301($matches) {

}

if ($oldversion < 2024061300){
// Update a field for the table block_exaportresume
$table = new xmldb_table('block_exaportresume');
$field = new xmldb_field('courseid', XMLDB_TYPE_INTEGER, '20', null, XMLDB_NOTNULL, null, '0');
if ($dbman->field_exists($table, $field)) {
$dbman->change_field_default($table, $field);
}

// Exaport savepoint reached.
upgrade_block_savepoint(true, 2024061300, 'exaport');
}

if ($oldversion < 2024070300) {
$table = new xmldb_table('block_exaportcate');

Expand All @@ -1177,6 +1165,18 @@ function block_exaport_wrong_personal_information_upgrade_2012120301($matches) {

}

if ($oldversion < 2024070301){
// Update a field for the table block_exaportresume
$table = new xmldb_table('block_exaportresume');
$field = new xmldb_field('courseid', XMLDB_TYPE_INTEGER, '20', null, XMLDB_NOTNULL, null, '0');
if ($dbman->field_exists($table, $field)) {
$dbman->change_field_default($table, $field);
}

// Exaport savepoint reached.
upgrade_block_savepoint(true, 2024070301, 'exaport');
}


return $result;
}
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@

$plugin->component = 'block_exaport';
$plugin->release = '4.6.7';
$plugin->version = 2024070300;
$plugin->version = 2024070301;
$plugin->requires = 2021051700; // moodle 3.11
$plugin->maturity = MATURITY_STABLE;

0 comments on commit 46e9c47

Please sign in to comment.