cakephp/cakephp — pull request #1159 by remidewitte (2013-03-01 13:11:47+00:00)
Title: CREATE instead of ALTER

When modifying and adding tables to schema.php I feel frustrated non-existing tables in the database issues ALTER TABLE with all fields.

This is a PR where tables in the schema.php and absent from the database issue a valid CREATE table with the exact same code used by schema create or schema dump.

BEFORE:
```sql
ALTER TABLE "public"."newone"
ALTER COLUMN "id" TYPE serial ,
ALTER COLUMN "id" SET NOT NULL,
ALTER COLUMN "id" SET DEFAULT 0,
...
```

AFTER:
```sql
CREATE TABLE "public"."newone" (
"id" serial NOT NULL,
...
```
Cheers,
Rémi