Browse Source

Issues 1888 & 1886: fix broken islandora_core_feature_update_8001 (#850)

* fix broken islandora_core_feature_update_8001

* issue-1886: fix undefined variable

fixes https://github.com/Islandora/documentation/issues/1888 and fixes https://github.com/Islandora/documentation/issues/1886
pull/840/head 2.0.1
Seth Shaw 3 years ago committed by GitHub
parent
commit
588760b57d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      modules/islandora_core_feature/islandora_core_feature.install

4
modules/islandora_core_feature/islandora_core_feature.install

@ -114,7 +114,7 @@ function islandora_core_feature_update_8001(&$sandbox) {
->orderBy('o.entity_id', 'ASC') ->orderBy('o.entity_id', 'ASC')
->orderBy('o.revision_id', 'ASC') ->orderBy('o.revision_id', 'ASC')
->orderBy('o.delta', 'ASC') ->orderBy('o.delta', 'ASC')
->range($sandbox['progress'], $sandbox['progress'] + $limit); ->range($sandbox['progress'], $limit);
$database->insert($table)->from($query)->execute(); $database->insert($table)->from($query)->execute();
} }
} }
@ -125,7 +125,7 @@ function islandora_core_feature_update_8001(&$sandbox) {
// Clean up. // Clean up.
foreach ($tables as $table) { foreach ($tables as $table) {
$database->schema()->dropTable($table . '_o'); $database->schema()->dropTable($table . '_o');
if ($sandbox['progress'] + $limit >= $progress[$table]['size']) { if ($sandbox['progress'] + $limit >= $sandbox[$table]['size']) {
$sandbox[$table]['done'] = TRUE; $sandbox[$table]['done'] = TRUE;
} }
} }

Loading…
Cancel
Save