Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moodle 42 stable #219

Merged
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 14 additions & 9 deletions db/upgrade.php
Original file line number Diff line number Diff line change
@@ -249,7 +249,7 @@ function xmldb_block_sharing_cart_upgrade($oldversion = 0): bool
upgrade_block_savepoint(true, 2024011800, 'sharing_cart');
}

if ($oldversion < 2024032100) {
if ($oldversion < 2024072900) {
/**
* Create block_sharing_cart_items table.
*/
@@ -462,17 +462,22 @@ function xmldb_block_sharing_cart_upgrade($oldversion = 0): bool
$dbman->drop_table($table);
}

upgrade_block_savepoint(true, 2024032100, 'sharing_cart');
upgrade_block_savepoint(true, 2024072900, 'sharing_cart');
}

if ($oldversion < 2024032101) {
if ($oldversion < 2024072900) {
$xmldb_table = new xmldb_table('block_sharing_cart_items');
$dbman->add_field(
$xmldb_table,
new xmldb_field(
'sortorder', XMLDB_TYPE_INTEGER, '10', notnull: false
)
);

if (!$dbman->field_exists($xmldb_table, 'sortorder')) {
$dbman->add_field(
$xmldb_table,
new xmldb_field(
'sortorder', XMLDB_TYPE_INTEGER, '10', notnull: false
)
);
}

upgrade_block_savepoint(true, 2024072900, 'sharing_cart');
}

return true;
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@

/** @var object $plugin */
$plugin->component = 'block_sharing_cart';
$plugin->version = 2024081900;
$plugin->version = 2024081901;
$plugin->requires = 2023042400; // Moodle 4.2.0
$plugin->release = '5.0, release 1';
$plugin->maturity = MATURITY_STABLE;