Commands

IRIS-ADMIN comes with commands formanage database.

Initialize

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

Seed data:

go run cmd/migrate/main.go seed