From fe350cc04aa1e57e4cb3a9ee7a6e55b237a068e5 Mon Sep 17 00:00:00 2001 From: "mariano.iglesias" Date: Wed, 16 Apr 2008 22:07:03 +0000 Subject: [PATCH] Adding documentation to show proper usage of cake schema run with a specific table, closes #4474 git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6676 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/console/libs/schema.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); }