Skip to content

Commit ff98158

Browse files
committed
Added documentation for #29.
1 parent 03de181 commit ff98158

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

src/site/xdoc/script.xml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ ID Applied At Description
5050
20090802210445 2009-08-04 22:51:17 create changelog
5151
20090804225207 2009-08-04 22:51:17 create author table
5252
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>
5454

5555
<p>If we need to generate a “do” script to apply the last two versions above, we’d run the following command:</p>
5656

@@ -68,6 +68,24 @@ ID Applied At Description
6868

6969
<source>/home/cbegin/testdb$ migrate script 20090804225207 0 > undo.sql</source>
7070

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+
7189
</section>
7290
</body>
7391

0 commit comments

Comments
 (0)