mirror of
https://github.com/friendica/friendica
synced 2025-04-23 13:50:11 +00:00
Command line option to check initial values
This commit is contained in:
parent
794f98f479
commit
61ff99c410
2 changed files with 58 additions and 11 deletions
|
@ -55,6 +55,7 @@ Commands
|
|||
update Update database schema
|
||||
dumpsql Dump database schema
|
||||
toinnodb Convert all tables from MyISAM or InnoDB in the Antelope file format to InnoDB in the Barracuda file format
|
||||
initial Set needed initial values in the tables
|
||||
version Set the database to a given number
|
||||
|
||||
Options
|
||||
|
@ -123,7 +124,11 @@ HELP;
|
|||
DBStructure::setDatabaseVersion($this->getArgument(1));
|
||||
$output = ob_get_clean();
|
||||
break;
|
||||
|
||||
case "initial":
|
||||
ob_start();
|
||||
DBStructure::checkInitialValues(true);
|
||||
$output = ob_get_clean();
|
||||
break;
|
||||
default:
|
||||
$output = 'Unknown command: ' . $this->getArgument(0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue