mirror of
https://github.com/friendica/friendica
synced 2025-04-28 11:44:23 +02:00
4) Adding Factories to other entrypoints
This commit is contained in:
parent
4af0119b73
commit
1e0e1674f2
20 changed files with 100 additions and 58 deletions
|
@ -61,17 +61,19 @@ HELP;
|
|||
|
||||
Core\Config::load();
|
||||
|
||||
$a = get_app();
|
||||
|
||||
switch ($this->getArgument(0)) {
|
||||
case "dryrun":
|
||||
$output = DBStructure::update(true, false);
|
||||
$output = DBStructure::update($a->getBasePath(), true, false);
|
||||
break;
|
||||
case "update":
|
||||
$force = $this->getOption(['f', 'force'], false);
|
||||
$output = Update::run($force, true, false);
|
||||
$output = Update::run($a->getBasePath(), $force, true, false);
|
||||
break;
|
||||
case "dumpsql":
|
||||
ob_start();
|
||||
DBStructure::printStructure();
|
||||
DBStructure::printStructure($a->getBasePath());
|
||||
$output = ob_get_clean();
|
||||
break;
|
||||
case "toinnodb":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue