]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/DBUpdate.php
Merge pull request #6554 from Ixiter/develop-bbcode-tags
[friendica.git] / src / Worker / DBUpdate.php
index 5f85c8ebefbd2ffb00a39cf477a3f0f2b742991c..48c7e7ce6a20ec22fa3bb5389aea01970aeb00c8 100644 (file)
@@ -5,16 +5,12 @@
  */
 namespace Friendica\Worker;
 
-use Friendica\Core\Config;
+use Friendica\Core\Update;
 
-class DBUpdate {
-       public static function execute() {
-               $a = get_app();
-
-               // We are deleting the latest dbupdate entry.
-               // This is done to avoid endless loops because the update was interupted.
-               Config::delete('database', 'dbupdate_'.DB_UPDATE_VERSION);
-
-               update_db($a);
+class DBUpdate
+{
+       public static function execute()
+       {
+               Update::run();
        }
 }