public
Description: Database migrations shell for CakePHP. NO LONGER MAINTAINED HERE. MOVED TO http://codaset.com/joelmoss/cakephp-db-migrations
Homepage: http://codaset.com/joelmoss/cakephp-db-migrations
Clone URL: git://github.com/joelmoss/cakephp-db-migrations.git
100644 41 lines (23 sloc) 1.518 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
==== INSTALLATION ====
 
1. Simply copy this directory into your application's plugins directory.
    
2. You will need to ensure that Pear (http://pear.php.net) is installed on the machine that you
    are developing on, and that you have installed the MDB2 (http://pear.php.net/package/MDB2)
    Pear package.
    
3. If you haven't already done so, or have not used any of the Cake console shells, you will
    need to setup the Cake console on your machine. Please watch the relative screencast for
    your OS at http://www.cakephp.org/screencasts
    
4. Now just open up your console or terminal program and cd into your Cake app root.
 
5. Now enter the following in your console: (don't type the $ sign)
    
      $ cake
      
    This will list all the shells that are installed and ready to run. If you installed everything
    correctly, then 'migrate' and 'fixtures' will be listed.
    
6. Type in this:
 
      $ cake migrate help
      
    This will display the help and usage instructions.
    
7. To generate your first migration file, run this:
 
      $ cake migrate generate my_first_migration
      
    Then edit the file it generates after which you can migrate:
    
      $ cake migrate
      
      
      
Please check out the examples directory within this package.
      
Updates, new releases and other resources can be found at http://code.google.com/p/cakephp-migrations/
For further assistance and additional resources, please check out my Blog at http://developingwithstyle.com