Commands

IRIS-ADMIN comes with commands formanage database.

init

Init is a command for initialize your program:

go run cmd/migrate/main.go init [--seed] 

migrate

Migrate is a command for migrate your database:

go run cmd/migrate/main.go migrate [--seed]

rollback

Rollback migrate:

go run cmd/migrate/main.go rollback [--to]

refresh

Rollback and migrate:

go run cmd/migrate/main.go refresh [--seed]

填充

Seed data:

go run cmd/migrate/main.go seed