summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-03-06 22:46:31 +0300
committerAndrew Dolgov <[email protected]>2019-03-06 22:46:31 +0300
commit91cfd9c391c9c243b9a9ead6ca856740f156a38e (patch)
tree2d11c8fed8040b918220a56024cd79b306e6eb42 /classes
parentc8fc9eee0c5d7a202bd79db41292859c69a79347 (diff)
dbupdater: add mysql transaction warning
Diffstat (limited to 'classes')
-rwxr-xr-xclasses/handler/public.php17
1 files changed, 9 insertions, 8 deletions
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 "<h2>" . __("Database update required") . "</h2>";
-
- print_notice("<h4>".
- sprintf("Your Tiny Tiny RSS database needs update to the latest version: %d to %d.",
- $updater->getSchemaVersion(), SCHEMA_VERSION).
- "</h4>");
-
- print_warning("Please backup your database before proceeding.");
+ print "<h2>".T_sprintf("Tiny Tiny RSS database needs update to the latest version (%d to %d).",
+ $updater->getSchemaVersion(), SCHEMA_VERSION)."</h2>";
+
+ if (DB_TYPE != "mysql") {
+ print_error("<strong>READ THIS:</strong> Due to MySQL limitations, your database is not completely protected while updating. ".
+ "Errors may put it in an inconsistent state requiring manual rollback. <strong>BACKUP YOUR DATABASE BEFORE CONTINUING.</strong>");
+ } else {
+ print_warning("Please backup your database before proceeding.");
+ }
print "<form method='POST'>
<input type='hidden' name='subop' value='performupdate'>