Skip to content

Commit 3ff270f

Browse files
committedMay 20, 2008
First beta release of Migrations v4.0
1 parent ef8ebca commit 3ff270f

File tree

5 files changed

+1338
-1278
lines changed

5 files changed

+1338
-1278
lines changed
 

‎CHANGELOG

+18-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,24 @@
11
==== Migrate.php Changelog (started as of v3.0) ====
22

3+
TODO:
4+
replace mdb2 with datadict
5+
generate migrations in arrays format
6+
transactions
7+
web based interface?
8+
FIXES:
9+
options format - name: [string:32, notnull, 2]
10+
11+
v 4.0 rc1 - May 2008 ...
12+
[+] Version numbers now use timestamps so as to minimize conflicts
13+
[+] Now supports interleaved migrations;
14+
when migrating up, will run migrations that have not yet been run, and will ignore any non-run migrations when running down.
15+
[+] Added info option (cake migrate info), which shows information on migrations
16+
[+] Can now specify version number when running up/down, thus allowing you to only run the up/down block of a specific migration
17+
[+] Schema table name is now customizable
18+
[+] Now supports PHP arrays in migration files
19+
320
v 3.7 - Feb 28 2008
4-
[*] Removed backticks from table name when changing migration version, as they caused errors when using SQLITE.
21+
[*] Removed back ticks from table name when changing migration version, as they caused errors when using SQLITE.
522
[+] Now supports Cake's UUID columns
623

724
v 3.6 - Jan 30 2008

‎INSTALL

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@
3939
Please check out the examples directory within this package.
4040

4141
Updates, new releases and other resources can be found at http://code.google.com/p/cakephp-migrations/
42-
For further assistance and additional resources, please check out my Blog at http://joelmoss.info
42+
For further assistance and additional resources, please check out my Blog at http://developingwithstyle.com

‎README

+21-3
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,32 @@ with everyone else's.
1414
The Migrations shell will generate a migration file for each DB change you want to make. This file
1515
can include any number of DB changes.
1616

17-
The Migration files use YAML; the extremely simple and human friendly data standard. So instead of
18-
having to write SQL queries, you can write a short YAML structure that will do the same thing:
17+
The Migration files support YAML and PHP array's. So instead of having to write SQL queries, you
18+
can write a short YAML structure that will do the same thing:
1919

2020
create_table:
2121
users:
2222
name: string
2323
age: int
2424
is_active: bool
25+
26+
or the equivalent in a PHP array:
27+
28+
array(
29+
'create_table' => array(
30+
'users' => array(
31+
'name' => array(
32+
'type' => 'string'
33+
)
34+
'age' => array(
35+
'type' => 'int'
36+
)
37+
'is_active' => array(
38+
'type' => 'bool'
39+
)
40+
)
41+
)
42+
)
2543

2644
The above YAML code will create a table called 'users'. This is equivalent to running the following
2745
MySQL code:
@@ -45,4 +63,4 @@ into your database.
4563
Please check out the examples directory within this package.
4664

4765
Updates, new releases and other resources can be found at http://code.google.com/p/cakephp-migrations/
48-
For further assistance and additional resources, please check out my Blog at http://joelmoss.info
66+
For further assistance and additional resources, please check out my Blog at http://developingwithstyle.com

‎USAGE

+6-4
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,15 @@ Before continuing, please be sure to read the README and INSTALL files included
7272

7373
- Migrates down to 0 and back up o the latest version
7474

75-
cake migrate down
75+
cake migrate down [version]
7676

77-
- Migrates down to the previous current version
77+
- Migrates down to the previous current version.
78+
If [version] is specified will run the DOWN section only on that specified version.
7879

79-
cake migrate up
80+
cake migrate up [version]
8081

81-
- Migrates up from the current to the next version
82+
- Migrates up from the current to the next version.
83+
If [version] is specified will run the UP section only on that specified version.
8284

8385
cake migrate help
8486

‎vendors/shells/migrate.php

+1,292-1,269
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.