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

dbupdater: unify naming

This commit is contained in:
Andrew Dolgov
2021-02-15 16:14:00 +03:00
parent 166f2d4666
commit 6426ae559a
3 changed files with 17 additions and 17 deletions

View File

@@ -380,8 +380,8 @@
$updater = new DbUpdater(Db::pdo(), DB_TYPE, SCHEMA_VERSION);
if ($updater->isUpdateRequired()) {
Debug::log("Schema update required, version " . $updater->getSchemaVersion() . " to " . SCHEMA_VERSION);
if ($updater->is_update_required()) {
Debug::log("Schema update required, version " . $updater->get_schema_version() . " to " . SCHEMA_VERSION);
if (DB_TYPE == "mysql")
Debug::Log("READ THIS: Due to MySQL limitations, your database is not completely protected while updating.\n".
@@ -400,10 +400,10 @@
Debug::log("Performing updates to version " . SCHEMA_VERSION . "...");
for ($i = $updater->getSchemaVersion() + 1; $i <= SCHEMA_VERSION; $i++) {
for ($i = $updater->get_schema_version() + 1; $i <= SCHEMA_VERSION; $i++) {
Debug::log("* Updating to version $i...");
$result = $updater->performUpdateTo($i, false);
$result = $updater->update_to($i, false);
if ($result) {
Debug::log("* Completed.");