From 4c735647c3ed39ccd843edca959fdd15c0b0d914 Mon Sep 17 00:00:00 2001 From: ZhengYang Date: Tue, 12 Aug 2014 15:48:01 +0800 Subject: [PATCH] add help message --- migrate.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/migrate.go b/migrate.go index 4849b1b..b0a7ffe 100644 --- a/migrate.go +++ b/migrate.go @@ -28,15 +28,23 @@ var cmdMigrate = &Command{ Long: ` bee migrate run all outstanding migrations + -driver: [mysql | postgresql | sqlite], the default is mysql + -conn: the connection string used by the driver, the default is root:@tcp(127.0.0.1:3306)/test bee migrate rollback rollback the last migration operation + -driver: [mysql | postgresql | sqlite], the default is mysql + -conn: the connection string used by the driver, the default is root:@tcp(127.0.0.1:3306)/test bee migrate reset rollback all migrations + -driver: [mysql | postgresql | sqlite], the default is mysql + -conn: the connection string used by the driver, the default is root:@tcp(127.0.0.1:3306)/test bee migrate refresh rollback all migrations and run them all again + -driver: [mysql | postgresql | sqlite], the default is mysql + -conn: the connection string used by the driver, the default is root:@tcp(127.0.0.1:3306)/test `, }