]> git.mxchange.org Git - friendica.git/commitdiff
Fix DB_UPDATE_VERSION constant
authorPhilipp Holzer <admin+github@philipp.info>
Sun, 21 Jul 2019 12:34:42 +0000 (14:34 +0200)
committerPhilipp Holzer <admin+github@philipp.info>
Sun, 21 Jul 2019 12:34:42 +0000 (14:34 +0200)
src/Database/Database.php

index 495e7d93d5b185252aab1b0ca9f286184ca6b7dd..c503416912287fd22bfc5516c28c35e9c85fedbb 100644 (file)
@@ -57,6 +57,11 @@ class Database
                $this->connect();
 
                DBA::init($this);
+
+               if ($this->isConnected()) {
+                       // Loads DB_UPDATE_VERSION constant
+                       DBStructure::definition($configCache->get('system', 'basepath'), false);
+               }
        }
 
        private function readServerVariables(array $server)