mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Splitting help() into more readable format.
This commit is contained in:
parent
76a88fc477
commit
e1d0be610c
1 changed files with 25 additions and 6 deletions
|
@ -464,17 +464,36 @@ class SchemaShell extends Shell {
|
|||
$this->out();
|
||||
$this->out('Commands:');
|
||||
$this->out();
|
||||
$this->out("\tschema help\n\t\tshows this help message.");
|
||||
$this->out("\tschema help");
|
||||
$this->out("\t\tshows this help message.");
|
||||
$this->out();
|
||||
$this->out("\tschema view\n\t\tread and output contents of schema file");
|
||||
$this->out("\tschema view");
|
||||
$this->out("\t\tread and output contents of schema file");
|
||||
$this->out();
|
||||
$this->out("\tschema generate\n\t\treads from 'connection' writes to 'path'\n\t\tTo force generation of all tables into the schema, use the -f param.\n\t\tUse 'schema generate snapshot <number>' to generate snapshots\n\t\twhich you can use with the -s parameter in the other operations.");
|
||||
$this->out("\tschema generate");
|
||||
$this->out("\t\treads from 'connection' writes to 'path'");
|
||||
$this->out("\t\tTo force generation of all tables into the schema, use the -f param.");
|
||||
$this->out("\t\tUse 'schema generate snapshot <number>' to generate snapshots");
|
||||
$this->out("\t\twhich you can use with the -s parameter in the other operations.");
|
||||
$this->out();
|
||||
$this->out("\tschema dump <filename>\n\t\tDump database sql based on schema file to <filename>. \n\t\tIf <filename> is write, schema dump will be written to a file\n\t\tthat has the same name as the app directory.");
|
||||
$this->out("\tschema dump <filename>");
|
||||
$this->out("\t\tDump database sql based on schema file to <filename>.");
|
||||
$this->out("\t\tIf <filename> is write, schema dump will be written to a file");
|
||||
$this->out("\t\tthat has the same name as the app directory.");
|
||||
$this->out();
|
||||
$this->out("\tschema run create <schema> <table>\n\t\tDrop and create tables based on schema file\n\t\toptional <schema> arg for selecting schema name\n\t\toptional <table> arg for creating only one table\n\t\tpass the -s param with a number to use a snapshot\n\t\tTo see the changes, perform a dry run with the -dry param");
|
||||
$this->out("\tschema run create <schema> <table>");
|
||||
$this->out("\t\tDrop and create tables based on schema file");
|
||||
$this->out("\t\toptional <schema> arg for selecting schema name");
|
||||
$this->out("\t\toptional <table> arg for creating only one table");
|
||||
$this->out("\t\tpass the -s param with a number to use a snapshot");
|
||||
$this->out("\t\tTo see the changes, perform a dry run with the -dry param");
|
||||
$this->out();
|
||||
$this->out("\tschema run update <schema> <table>\n\t\talter tables based on schema file\n\t\toptional <schema> arg for selecting schema name.\n\t\toptional <table> arg for altering only one table.\n\t\tTo use a snapshot, pass the -s param with the snapshot number\n\t\tTo see the changes, perform a dry run with the -dry param");
|
||||
$this->out("\tschema run update <schema> <table>");
|
||||
$this->out("\t\talter tables based on schema file");
|
||||
$this->out("\t\toptional <schema> arg for selecting schema name.");
|
||||
$this->out("\t\toptional <table> arg for altering only one table.");
|
||||
$this->out("\t\tTo use a snapshot, pass the -s param with the snapshot number");
|
||||
$this->out("\t\tTo see the changes, perform a dry run with the -dry param");
|
||||
$this->out();
|
||||
$this->_stop();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue