Refresh Migrations Command
The refresh:migrations
command rolls back all migrations (or drops all tables) and then re-runs all migrations from scratch.
Usage
yarn hysteria refresh:migrations
Options
-v, --verbose
: Verbose mode with all query logs.-f, --force
: Drop all tables before running migrations (instead of running down migrations).-t, --type [type]
: Database type.-h, --host [host]
: Database host.-d, --database [database]
: Database name.-u, --username [username]
: Username.-p, --password [password]
: Password.-m, --migration-path [path]
: Path to the migrations.
Example
yarn hysteria refresh:migrations --force -t postgres -h localhost -d test -u root -p root
Back to: CLI Overview