Run Migration

Run all migrations

jetshift migrate -e database-engine
Examples
jetshift migrate # default engine is mysql
jetshift migrate -e clickhouse

Run specific migration

jetshift migrate table-name -e database-engine
Examples
jetshift migrate users # default engine is mysql
jetshift migrate users -e clickhouse

Drop table and migrate

The -d option will drop all tables from the database:

Drop all tables:

jetshift migrate -d
jetshift migrate -d -e clickhouse

The --fresh or -f option will drop the table from the database and then execute the migrate command:

Drop and migrate all tables:

jetshift migrate --fresh # default engine is mysql
jetshift migrate -e clickhouse -f

Drop and migrate specific table:

Examples
jetshift migrate users --fresh # default engine is mysql
jetshift migrate users -e clickhouse -f