Skip to content

Commit 3a60709

Browse files
committed
Update README
1 parent 64d78a3 commit 3a60709

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,15 @@ dbmate up # create the database (if it does not already exist) and run an
117117
dbmate create # create the database
118118
dbmate drop # drop the database
119119
dbmate migrate # run any pending migrations
120-
dbmate rollback # roll back the most recent migration
120+
--only <version> # apply only the specified migration version
121+
--to <version> # apply migrations up to the specified version (inclusive)
122+
--one # apply exactly one pending migration
123+
--all # apply all pending migrations (default)
124+
dbmate rollback # rollback migrations
125+
--only <version> # rollback only the specified migration version
126+
--to <version> # rollback migrations down to the specified version (exclusive)
127+
--one # rollback exactly one migration (default)
128+
--all # rollback all migrations
121129
dbmate down # alias for rollback
122130
dbmate status # show the status of all migrations (supports --exit-code and --quiet)
123131
dbmate dump # write the database schema.sql file

0 commit comments

Comments
 (0)