Skip to content

Commit

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

}

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

$field = new xmldb_field('iconmerge', XMLDB_TYPE_INTEGER, '1', true, null, null, 0, 'structure_share');
if (!$dbman->field_exists($table, $field)) {
$dbman->add_field($table, $field);
}

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

}

if ($oldversion < 2024061300){
// Update a field for the table block_exaportresume
$table = new xmldb_table('block_exaportresume');
Expand All @@ -1177,6 +1164,19 @@ function block_exaport_wrong_personal_information_upgrade_2012120301($matches) {
upgrade_block_savepoint(true, 2024061300, 'exaport');
}

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

$field = new xmldb_field('iconmerge', XMLDB_TYPE_INTEGER, '1', true, null, null, 0, 'structure_share');
if (!$dbman->field_exists($table, $field)) {
$dbman->add_field($table, $field);
}

// Exaport savepoint reached.
upgrade_block_savepoint(true, 2024070300, '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 = 2024062700;
$plugin->version = 2024070300;
$plugin->requires = 2021051700; // moodle 3.11
$plugin->maturity = MATURITY_STABLE;

0 comments on commit e5dec91

Please sign in to comment.