-
Notifications
You must be signed in to change notification settings - Fork 15
Migration
Sumit Patil edited this page Oct 29, 2015
·
2 revisions
To create a migration, you may use the orient command on the Artisan CLI:
php artisan orient:make create_users_table
The migration will be placed in your database/migrations folder, and will contain a timestamp which allows the framework to determine the order of the migrations.
The --table and --create options may also be used to indicate the name of the table, and whether the migration will be creating a new table:
php artisan orient:make add_votes_to_users_table --table=users_votes
php artisan orient:make create_users_table --create=users
To run migration
php artisan orient:migrate