*/
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();
}
}