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?
Robin source
share