Really useful software project management and source code hosting. tell me more...
Merge branch 'master' of git@github.com:joelmoss/cakephp-db-migrations
| 361 | 361 | if (empty($__tables)) $this->error('', ' There are currently no tables found in the database.'); | |
| 362 | 362 | ||
| 363 | 363 | if (!$allTables) { | |
| 364 | $id = gmdate("U"); | ||
| 364 | 365 | foreach ($__tables as $__table) { | |
| 365 | 366 | $out = $this->_buildYaml($__table); | |
| 366 | $this->createFile(MIGRATIONS_PATH .DS. gmdate("U") .'_create_'. $__table. '.yml', $out); | ||
| 367 | $this->createFile(MIGRATIONS_PATH .DS. ($id++) .'_create_'. $__table. '.yml', $out); | ||
| 367 | 368 | } | |
| 368 | 369 | } else { | |
| 369 | 370 | $this->createFile(MIGRATIONS_PATH .DS. 'full_schema.yml', $this->_buildYaml($__tables)); |