1
0
mirror of https://github.com/beego/bee.git synced 2024-11-25 20:10:55 +00:00

add help message

This commit is contained in:
ZhengYang 2014-08-12 15:48:01 +08:00
parent 8d82b27502
commit 4c735647c3

View File

@ -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
`,
}