From 13f899542d4854d9a4c00632b31fce266f61f773 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 18 Nov 2017 07:31:33 +0000 Subject: [PATCH] dbupdate now moved as well --- boot.php | 2 +- include/dbupdate.php | 13 ------------- src/Worker/Cron.php | 3 +++ src/Worker/CronHooks.php | 4 ++++ src/Worker/DBClean.php | 2 ++ src/Worker/DBUpdate.php | 18 ++++++++++++++++++ 6 files changed, 28 insertions(+), 14 deletions(-) delete mode 100644 include/dbupdate.php create mode 100644 src/Worker/DBUpdate.php diff --git a/boot.php b/boot.php index 8492701a0..52026a7fb 100644 --- a/boot.php +++ b/boot.php @@ -630,7 +630,7 @@ function check_db($via_worker) } if ($build != DB_UPDATE_VERSION) { // When we cannot execute the database update via the worker, we will do it directly - if (!Worker::add(PRIORITY_CRITICAL, 'dbupdate') && $via_worker) { + if (!Worker::add(PRIORITY_CRITICAL, 'DBUpdate') && $via_worker) { update_db(get_app()); } } diff --git a/include/dbupdate.php b/include/dbupdate.php deleted file mode 100644 index 799ca262c..000000000 --- a/include/dbupdate.php +++ /dev/null @@ -1,13 +0,0 @@ -