Really useful software project management and source code hosting.    tell me more...
BROWSE: projects / users / groups
Public clone: git://codaset.com/joelmoss/cakephp-db-migrations.git


Really Useful Social coding!

Codaset is an open system, so you can browse and search through all the open source projects, and check out what your friends are coding. Follow them, befriend them, and fork their code; quickly and easily.
Every single open source project you create is free, so come on and use Codaset at no cost. Your first private or semi-private project is also free. Read more about what it costs after that.

Merge branch 'master' of git@github.com:joelmoss/cakephp-db-migrations

comment0 comments   

by Joel Moss
over 1 year ago
commit:f0bf046a54c0a3d13be4198d349ce55e945fc5c8
tree:dbcf7ba326ebdfe61d587b947675854c07f9ffd6
parent:bc44fda00b59caef80930f8f04f71349f096c2da
361361         if (empty($__tables)) $this->error('', '  There are currently no tables found in the database.');
362362 
363363         if (!$allTables) {
364             $id = gmdate("U");
364365             foreach ($__tables as $__table) {
365366                 $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);
367368             }
368369         } else {
369370             $this->createFile(MIGRATIONS_PATH .DS. 'full_schema.yml', $this->_buildYaml($__tables));