diff options
author | Andrew Dolgov <[email protected]> | 2021-02-15 16:14:00 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-15 16:14:00 +0300 |
commit | 6426ae559aba81b895b556ab2566458b5d3026e6 (patch) | |
tree | 04f1b47a8f67111a9b6b8e3e898d98cd3d9f16d4 /update.php | |
parent | 166f2d46666bb872a1f30a5ab23b113f2f481640 (diff) |
dbupdater: unify naming
Diffstat (limited to 'update.php')
-rwxr-xr-x | update.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/update.php b/update.php index 56158ca48..cb927e49a 100755 --- a/update.php +++ b/update.php @@ -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."); |