]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Console/DatabaseStructure.php
Moved the functions update_db and run_update_function to a Friendica\Core\Update...
[friendica.git] / src / Core / Console / DatabaseStructure.php
index 4b607c1e6a36918c07d1957536c9c1da36dedd37..7b4c4c6cf127101982cf204d9a3497ed78dfb8a3 100644 (file)
@@ -3,6 +3,7 @@
 namespace Friendica\Core\Console;
 
 use Friendica\Core;
+use Friendica\Core\Update;
 use Friendica\Database\DBA;
 use Friendica\Database\DBStructure;
 use RuntimeException;
@@ -80,7 +81,7 @@ HELP;
 
                                // 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;
                                        }
@@ -90,7 +91,7 @@ HELP;
 
                                // 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;
                                        }