File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ ID Applied At Description
50
50
20090802210445 2009-08-04 22:51:17 create changelog
51
51
20090804225207 2009-08-04 22:51:17 create author table
52
52
20090804225328 2009-08-05 24:55:23 create blog table
53
- 20090804225333 2009-08-04 22:51:17 create post table</source >
53
+ 20090804225333 ...pending... create post table</source >
54
54
55
55
<p >If we need to generate a “do” script to apply the last two versions above, we’d run the following command:</p >
56
56
@@ -68,6 +68,24 @@ ID Applied At Description
68
68
69
69
<source >/home/cbegin/testdb$ migrate script 20090804225207 0 > undo.sql</source >
70
70
71
+ <p >Since version 3.2.1, two handy shortcut parameters <b >pending</b > and <b >pending_undo</b > were added.</p >
72
+
73
+ <p >In the above example, only the last migration is pending, so the command below:</p >
74
+
75
+ <source >/home/cbegin/testdb$ migrate script pending</source >
76
+
77
+ <p >is equivalent to the following:</p >
78
+
79
+ <source >/home/cbegin/testdb$ migrate script 20090804225328 20090804225333</source >
80
+
81
+ <p >Similary, the command below:</p >
82
+
83
+ <source >/home/cbegin/testdb$ migrate script pending_undo</source >
84
+
85
+ <p >is equivalent to the following:</p >
86
+
87
+ <source >/home/cbegin/testdb$ migrate script 20090804225333 20090804225328</source >
88
+
71
89
</section >
72
90
</body >
73
91
You can’t perform that action at this time.
0 commit comments