mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 11:55:56 +00:00
dbupdater: add mysql transaction warning
This commit is contained in:
@@ -1174,14 +1174,15 @@ class Handler_Public extends Handler {
|
|||||||
} else {
|
} else {
|
||||||
if ($updater->isUpdateRequired()) {
|
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>".
|
if (DB_TYPE != "mysql") {
|
||||||
sprintf("Your Tiny Tiny RSS database needs update to the latest version: %d to %d.",
|
print_error("<strong>READ THIS:</strong> Due to MySQL limitations, your database is not completely protected while updating. ".
|
||||||
$updater->getSchemaVersion(), SCHEMA_VERSION).
|
"Errors may put it in an inconsistent state requiring manual rollback. <strong>BACKUP YOUR DATABASE BEFORE CONTINUING.</strong>");
|
||||||
"</h4>");
|
} else {
|
||||||
|
print_warning("Please backup your database before proceeding.");
|
||||||
print_warning("Please backup your database before proceeding.");
|
}
|
||||||
|
|
||||||
print "<form method='POST'>
|
print "<form method='POST'>
|
||||||
<input type='hidden' name='subop' value='performupdate'>
|
<input type='hidden' name='subop' value='performupdate'>
|
||||||
|
|||||||
@@ -960,6 +960,10 @@ body.ttrss_main .text-success,
|
|||||||
body.ttrss_utility .text-success {
|
body.ttrss_utility .text-success {
|
||||||
color: #468847;
|
color: #468847;
|
||||||
}
|
}
|
||||||
|
body.ttrss_main .text-warning,
|
||||||
|
body.ttrss_utility .text-warning {
|
||||||
|
color: #a47e3c;
|
||||||
|
}
|
||||||
body.ttrss_main .alert,
|
body.ttrss_main .alert,
|
||||||
body.ttrss_utility .alert,
|
body.ttrss_utility .alert,
|
||||||
body.ttrss_main .alert h4,
|
body.ttrss_main .alert h4,
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -1141,6 +1141,10 @@ body.ttrss_main, body.ttrss_utility {
|
|||||||
color: #468847;
|
color: #468847;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.text-warning {
|
||||||
|
color: darken(#c09853, 10%);
|
||||||
|
}
|
||||||
|
|
||||||
.alert,
|
.alert,
|
||||||
.alert h4 {
|
.alert h4 {
|
||||||
color: #c09853;
|
color: #c09853;
|
||||||
|
|||||||
@@ -961,6 +961,10 @@ body.ttrss_main .text-success,
|
|||||||
body.ttrss_utility .text-success {
|
body.ttrss_utility .text-success {
|
||||||
color: #468847;
|
color: #468847;
|
||||||
}
|
}
|
||||||
|
body.ttrss_main .text-warning,
|
||||||
|
body.ttrss_utility .text-warning {
|
||||||
|
color: #a47e3c;
|
||||||
|
}
|
||||||
body.ttrss_main .alert,
|
body.ttrss_main .alert,
|
||||||
body.ttrss_utility .alert,
|
body.ttrss_utility .alert,
|
||||||
body.ttrss_main .alert h4,
|
body.ttrss_main .alert h4,
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -961,6 +961,10 @@ body.ttrss_main .text-success,
|
|||||||
body.ttrss_utility .text-success {
|
body.ttrss_utility .text-success {
|
||||||
color: #468847;
|
color: #468847;
|
||||||
}
|
}
|
||||||
|
body.ttrss_main .text-warning,
|
||||||
|
body.ttrss_utility .text-warning {
|
||||||
|
color: #a47e3c;
|
||||||
|
}
|
||||||
body.ttrss_main .alert,
|
body.ttrss_main .alert,
|
||||||
body.ttrss_utility .alert,
|
body.ttrss_utility .alert,
|
||||||
body.ttrss_main .alert h4,
|
body.ttrss_main .alert h4,
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user