From 26aee232544f0d83b1863433fddecbc9060afc4d Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Sat, 6 Oct 2018 22:15:08 +0200 Subject: [PATCH] Replacing dbupdate_ in admin.php and removing it from Worker\DBUpdate --- mod/admin.php | 2 +- src/Worker/DBUpdate.php | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/mod/admin.php b/mod/admin.php index d4cbafe54b..9dd907e11c 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -1595,7 +1595,7 @@ function admin_page_dbsync(App $a) $retval = DBStructure::update(false, true); if ($retval === '') { $o .= L10n::t("Database structure update %s was successfully applied.", DB_UPDATE_VERSION) . "
"; - Config::set('database', 'dbupdate_' . DB_UPDATE_VERSION, 'success'); + Config::set('database', 'last_successful_update', time()); } else { $o .= L10n::t("Executing of database structure update %s failed with error: %s", DB_UPDATE_VERSION, $retval) . "
"; } diff --git a/src/Worker/DBUpdate.php b/src/Worker/DBUpdate.php index fcf07c0b65..ae25760c87 100644 --- a/src/Worker/DBUpdate.php +++ b/src/Worker/DBUpdate.php @@ -12,10 +12,6 @@ class DBUpdate { public static function execute() { - // 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::run(); } } -- 2.39.5