Laravel 4 - Getting a fatal error while executing wizards: migrate

I just started using Laravel and I have problems with masters and migrations.

I am creating a migration using: php artisan migrate:make create_clubs_table. I can create a db schema.

But when I change the scheme and create a new migration using the command above, I get the following error:

PHP Fatal error:  Cannot redeclare class CreateClubsTable in /var/www/clubb/app/database/migrations/2013_10_16_202121_create_clubs_table.php on line 43

Now I know this, because now I have 2 migrations with the same class name, but isn't that the idea of ​​migration, or do I understand the documents? Should I remove old migrations?

+4
source share
1 answer

, . . - (: , ), recreate_clubs_table create_clubs_table_again.

, , , php artisan tinker --env=local (env, ). tinker (new CreateClubsTable)->down();, (new CreateClubsTable)->up();. .

+3

All Articles