namespace Friendica\Core\Console;
use Friendica\Core;
+use Friendica\Core\Update;
use Friendica\Database\DBA;
use Friendica\Database\DBStructure;
use RuntimeException;
// run the pre_update_nnnn functions in update.php
for ($x = $stored; $x < $current; $x ++) {
- $r = run_update_function($x, 'pre_update');
+ $r = Update::runUpdateFunction($x, 'pre_update');
if (!$r) {
break;
}
// run the update_nnnn functions in update.php
for ($x = $stored; $x < $current; $x ++) {
- $r = run_update_function($x, 'update');
+ $r = Update::runUpdateFunction($x, 'update');
if (!$r) {
break;
}