Powered by Invision Power Board



  Reply to this topicStart new topicStart Poll

> schema migrations, Schema migrations like RoR
mytrash
Posted: Nov 11 2011, 09:46 AM
Quote Post


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
PMEmail Poster
Top
te37v
Posted: Jan 13 2013, 05:13 AM
Quote Post


Newbie
*

Group: Members
Posts: 8
Member No.: 3713
Joined: 13-December 12



Thank you for the great offer.


--------------------
PMEmail Poster
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll

 

Disclaimer:
This forum is in no way affiliated with the Cake Software Foundation
The CakePHP name and icon is a trademark of the Cake Software Foundation


Lo-Fi Version