A
A
Andr Lw12014-08-03 18:18:25
symfony
Andr Lw1, 2014-08-03 18:18:25

Laravel 4. How to migrate all files?

There are two files in the app\database\migrations
folder: 2014_08_02_154609_create_posts_table.php
2014_08_03_140916_create_users_table.php
when running the command in the console:
php artisan migrate
only the users table is created
How to do the migration correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zTrue, 2014-08-04
@lw1

php artisan migratewill run all unapplied migrations. Either the posts migration has already been applied (check the migrations table) or it's written incorrectly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question