dbupdater: add mysql transaction warning
This commit is contained in:
parent
c8fc9eee0c
commit
91cfd9c391
|
@ -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'>
|
||||
|
|
|
@ -960,6 +960,10 @@ body.ttrss_main .text-success,
|
|||
body.ttrss_utility .text-success {
|
||||
color: #468847;
|
||||
}
|
||||
body.ttrss_main .text-warning,
|
||||
body.ttrss_utility .text-warning {
|
||||
color: #a47e3c;
|
||||
}
|
||||
body.ttrss_main .alert,
|
||||
body.ttrss_utility .alert,
|
||||
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;
|
||||
}
|
||||
|
||||
.text-warning {
|
||||
color: darken(#c09853, 10%);
|
||||
}
|
||||
|
||||
.alert,
|
||||
.alert h4 {
|
||||
color: #c09853;
|
||||
|
|
|
@ -961,6 +961,10 @@ body.ttrss_main .text-success,
|
|||
body.ttrss_utility .text-success {
|
||||
color: #468847;
|
||||
}
|
||||
body.ttrss_main .text-warning,
|
||||
body.ttrss_utility .text-warning {
|
||||
color: #a47e3c;
|
||||
}
|
||||
body.ttrss_main .alert,
|
||||
body.ttrss_utility .alert,
|
||||
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 {
|
||||
color: #468847;
|
||||
}
|
||||
body.ttrss_main .text-warning,
|
||||
body.ttrss_utility .text-warning {
|
||||
color: #a47e3c;
|
||||
}
|
||||
body.ttrss_main .alert,
|
||||
body.ttrss_utility .alert,
|
||||
body.ttrss_main .alert h4,
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue