1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 05:15:55 +00:00

dbupdater: add mysql transaction warning

This commit is contained in:
Andrew Dolgov
2019-03-06 22:46:31 +03:00
parent c8fc9eee0c
commit 91cfd9c391
8 changed files with 27 additions and 10 deletions

View File

@@ -1174,14 +1174,15 @@ class Handler_Public extends Handler {
} else {
if ($updater->isUpdateRequired()) {
print "<h2>" . __("Database update required") . "</h2>";
print "<h2>".T_sprintf("Tiny Tiny RSS database needs update to the latest version (%d to %d).",
$updater->getSchemaVersion(), SCHEMA_VERSION)."</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.");
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'>