]> git.mxchange.org Git - friendica.git/commitdiff
Setting update version & time on success
authorPhilipp Holzer <admin@philipp.info>
Sun, 7 Oct 2018 08:42:14 +0000 (10:42 +0200)
committerPhilipp Holzer <admin@philipp.info>
Wed, 31 Oct 2018 13:44:23 +0000 (14:44 +0100)
mod/admin.php
src/Core/Update.php

index 9dd907e11c0e6106313dc228beb35d7baa4e297e..08c2ecbbc4aae9737429b9588ec61e0fa7271bd7 100644 (file)
@@ -1595,7 +1595,8 @@ 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) . "<br />";
-                       Config::set('database', 'last_successful_update', time());
+                       Config::set('database', 'last_successful_update', DB_UPDATE_VERSION);
+                       Config::set('database', 'last_successful_update_time', time());
                } else {
                        $o .= L10n::t("Executing of database structure update %s failed with error: %s", DB_UPDATE_VERSION, $retval) . "<br />";
                }
index 8b11d8dcff3ab1d537e403078c86983056f21ea3..a524830e753ddce7f43c89a647f99b637dca21ec 100644 (file)
@@ -47,7 +47,8 @@ class Update
                                                Lock::release('dbupdate');
                                                return;
                                        } else {
-                                               Config::set('database', 'last_successful_update', time());
+                                               Config::set('database', 'last_successful_update', $current);
+                                               Config::set('database', 'last_successful_update_time', time());
                                        }
 
                                        // run the update_nnnn functions in update.php