What do you mean "ruins old tables"? What happens to them? What errors do you get?
Laravel migrations run in the order they were created - php artisan migrate will run any migrations which have not yet been run, so I don't know why this should be ruining your tables.
There are ways to run only one migration but I wouldn't recommend messing around with your migrations this way, since the point of them is to be able to rollback safely if you need to, and stuffing around with them manually may destroy this ability, and may make you lose data.
It may be prudent to go through each of your migration files and make sure the code is ok in them. Once you are sure you could run:
php artisan migrate:reset
and start again. (Or simply run php artisan migrate:refresh)
Having said that, depending how much data is at stake here you could simply:
I have been run old tables and everything went as it should. I created new table and i run new migration and it started to run old tables, which already was created. I can't reset database because i have some data already.
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us