]> git.mxchange.org Git - friendica.git/blobdiff - src/Console/DatabaseStructure.php
Rename Model\Post\UserNotifications type constants
[friendica.git] / src / Console / DatabaseStructure.php
index 343c90023d8bfad831f6bd3f6cac074c18a3da3e..b44400c01a0b710c6cb8dc8b36c6239b6c155731 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -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();