From 91cfd9c391c9c243b9a9ead6ca856740f156a38e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 6 Mar 2019 22:46:31 +0300 Subject: dbupdater: add mysql transaction warning --- classes/handler/public.php | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'classes') diff --git a/classes/handler/public.php b/classes/handler/public.php index 1f96baae7..6456853a6 100755 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -1174,14 +1174,15 @@ class Handler_Public extends Handler { } else { if ($updater->isUpdateRequired()) { - print "

" . __("Database update required") . "

"; - - print_notice("

". - sprintf("Your Tiny Tiny RSS database needs update to the latest version: %d to %d.", - $updater->getSchemaVersion(), SCHEMA_VERSION). - "

"); - - print_warning("Please backup your database before proceeding."); + print "

".T_sprintf("Tiny Tiny RSS database needs update to the latest version (%d to %d).", + $updater->getSchemaVersion(), SCHEMA_VERSION)."

"; + + if (DB_TYPE != "mysql") { + print_error("READ THIS: Due to MySQL limitations, your database is not completely protected while updating. ". + "Errors may put it in an inconsistent state requiring manual rollback. BACKUP YOUR DATABASE BEFORE CONTINUING."); + } else { + print_warning("Please backup your database before proceeding."); + } print "
-- cgit v1.2.3