- Change environment in
index.php
- Open
application/config/<environment>
and editconfig.php
anddatabase.php
- Run
php index.php migration run
. See migration options - Run
php index.php migration seed
php index.php migration <option>
:
run
Execute all migrationsrun <version>
Run single migration by version numberundo
undo last migrationcreate
Generate migration files from database tables !!THIS MAY OVERWRITE CURRENT MIGRATIONS!!create <ClassName>
Generate migration using specific classseed
Seed data from all available seedersseed <ClassName>
Seed data from specified classrefresh
Truncate all tables and run migrations againhelp
show help options