mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Fixed a bug in postgres block upgrade script messing up with block ids (Merged from 15_STABLE)
This commit is contained in:
parent
803b6ea4e3
commit
dbbbb588a3
@ -59,9 +59,9 @@ global $CFG;
|
||||
if(!empty($records)) {
|
||||
foreach($records as $block) {
|
||||
$block->multiple = 0;
|
||||
unset($block->id);
|
||||
insert_record('block', $block);
|
||||
}
|
||||
execute_sql("SELECT setval('{$CFG->prefix}block_id_seq', (SELECT MAX(id) FROM {$CFG->prefix}block), true)");
|
||||
}
|
||||
|
||||
execute_sql("DROP TABLE {$CFG->prefix}blocks");
|
||||
|
Loading…
x
Reference in New Issue
Block a user