]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Admin/DBSync.php
Further unused tables to be dropped
[friendica.git] / src / Module / Admin / DBSync.php
index 36f683e08731b059f761b584c69c3a199e9065d8..9449e3be70ab95ab203ea0a114f2068c86e962cf 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -54,11 +54,9 @@ class DBSync extends BaseAdmin
                                break;
                        case 'check':
                                // @TODO Seems like a similar logic like Update::check()
-                               $retval = DBStructure::update($a->getBasePath(), false, true);
+                               $retval = DBStructure::performUpdate();
                                if ($retval === '') {
                                        $o = DI::l10n()->t("Database structure update %s was successfully applied.", DB_UPDATE_VERSION) . "<br />";
-                                       DI::config()->set('database', 'last_successful_update', DB_UPDATE_VERSION);
-                                       DI::config()->set('database', 'last_successful_update_time', time());
                                } else {
                                        $o = DI::l10n()->t("Executing of database structure update %s failed with error: %s", DB_UPDATE_VERSION, $retval) . "<br />";
                                }