]> git.mxchange.org Git - friendica.git/blobdiff - src/Console/DatabaseStructure.php
update FR translations THX kalon33
[friendica.git] / src / Console / DatabaseStructure.php
index 343c90023d8bfad831f6bd3f6cac074c18a3da3e..652abfd97dda1843e4a05680af7f009a67474603 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -21,7 +21,7 @@
 
 namespace Friendica\Console;
 
-use Friendica\Core\Config\Cache;
+use Friendica\Core\Config\ValueObject\Cache;
 use Friendica\Core\Update;
 use Friendica\Database\Database;
 use Friendica\Database\DBStructure;
@@ -52,7 +52,7 @@ Usage
 
 Commands
     drop     Show tables that aren't in use by Friendica anymore and can be dropped
-       -e|--execute    Execute the dropping
+       -e|--execute    Execute the removal
 
     update   Update database schema
        -f|--force      Force the update command (Even if the database structure matches)
@@ -106,7 +106,7 @@ HELP;
 
                switch ($this->getArgument(0)) {
                        case "dryrun":
-                               $output = DBStructure::update($basePath, true, false);
+                               $output = DBStructure::dryRun();
                                break;
                        case "update":
                                $force    = $this->getOption(['f', 'force'], false);
@@ -120,6 +120,7 @@ HELP;
                                $output = ob_get_clean();
                                break;
                        case "dumpsql":
+                               DBStructure::writeStructure();
                                ob_start();
                                DBStructure::printStructure($basePath);
                                $output = ob_get_clean();