]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Console/DatabaseStructure.php
Update use statement lists with new Friendica\Database\dba class
[friendica.git] / src / Core / Console / DatabaseStructure.php
index 11904843102a64aa4e34fd9d6031c1c922c37beb..8c26987d2cbfc3b458d732ccad29b27808a056d1 100644 (file)
@@ -3,7 +3,9 @@
 namespace Friendica\Core\Console;
 
 use Friendica\Core;
+use Friendica\Database\dba;
 use Friendica\Database\DBStructure;
+use RuntimeException;
 
 require_once 'boot.php';
 require_once 'include/dba.php';
@@ -56,8 +58,8 @@ HELP;
                        throw new \Asika\SimpleConsole\CommandArgsException('Too many arguments');
                }
 
-               if (!\dba::connected()) {
-                       throw new \RuntimeException('Unable to connect to database');
+               if (!dba::connected()) {
+                       throw new RuntimeException('Unable to connect to database');
                }
 
                Core\Config::load();