diff --git a/cake/console/libs/schema.php b/cake/console/libs/schema.php index bc3afb00e..8c3bf5cbc 100644 --- a/cake/console/libs/schema.php +++ b/cake/console/libs/schema.php @@ -305,7 +305,7 @@ class SchemaShell extends Shell { $contents = array(); - if (!$table) { + if (empty($table)) { foreach ($compare as $table => $changes) { $contents[$table] = $db->alterSchema(array($table => $changes), $table); } @@ -391,8 +391,8 @@ class SchemaShell extends Shell { $this->out("\n\tschema view\n\t\tread and output contents of schema file"); $this->out("\n\tschema generate\n\t\treads from 'connection' writes to 'path'\n\t\tTo force genaration of all tables into the schema, use the -f param."); $this->out("\n\tschema dump \n\t\tdump database sql based on schema file to filename in schema path. \n\t\tif filename is true, default will use the app directory name."); - $this->out("\n\tschema run create \n\t\tdrop tables and create database based on schema file\n\t\toptional
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("\n\tschema run update
\n\t\talter tables based on schema file\n\t\toptional
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("\n\tschema run create
\n\t\tdrop tables and create database based on schema file\n\t\toptional arg for selecting schema name\n\t\toptional
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("\n\tschema run update
\n\t\talter tables based on schema file\n\t\toptional arg for selecting schema name.\n\t\toptional
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(""); exit(); }