Level 7
Just run php artisan migrate only the new migration will be run
https://laravel.com/docs/5.8/migrations#running-migrations
If in doubt, take a backup copy of your database first and make sure you know how to restore it ;)
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have students and roles table already in my DB. I've added a new table named as Course now, I want to migrate course table but I don't want to delete the data of already created tables.
Suggest me a solution if there is any.!
Just run php artisan migrate only the new migration will be run
https://laravel.com/docs/5.8/migrations#running-migrations
If in doubt, take a backup copy of your database first and make sure you know how to restore it ;)
Please or to participate in this conversation.