| CakePHP Official Site · Rules and Regulations |
Help
Search
Members
Calendar
Shoutbox
|
| Welcome Guest ( Log In | Register ) | Resend Validation Email |
![]() ![]() ![]() |
| mytrash |
Posted: Nov 11 2011, 09:46 AM
|
|
Newbie ![]() Group: Members Posts: 1 Member No.: 3203 Joined: 9-November 11 |
Hello.
I am new in cakephp, but I work with Ruby on Rails. So I am finding tool like migrations which are implemented in RoR "rake db:migrate"... In cakephp is "cake schema updage"... But I think that this is not the same feature. For example: Threre are 10 programmers which work on the same project. In RoR each programer can generate new migration which will have unique id (generated from current date and time 201111111234_create_users.rb). When I download project from version control system. I can run rake db:migrate without fear and rake will execute all migrations consecutively based on migrations create date. I don't have to take care if the table will be created, deleted or updated. And everything works perfectly. In cakephp "cake schema generate" generates new schema file with suffix (snapshot number). But what if at one time more developers create new schema? There will be two files with the same suffix in the project and we have conflict in project, so we need solve it... Is there some better documentation for schemas? There are undocumented parts for schema class - before and after functions... And some examples howto use it in project with more programmers. Howto create new table, delete old table... Thank you for your help. Myth Rush |
| te37v |
Posted: Jan 13 2013, 05:13 AM
|
|
Newbie ![]() Group: Members Posts: 8 Member No.: 3713 Joined: 13-December 12 |
Thank you for the great offer.
-------------------- |
![]() |
![]() ![]() ![]() |