Laravel Database Table Update

Viewed 57

I have added the table headers in the Laravel database. I want to update and save. The commands below cause my data to be deleted.

php artisan migrate:fresh
php artisan migrate:refresh
php artisan migrate:rollback

How do I update without deleting my data?

1 Answers

You can rollback only last migration

php artisan migrate:rollback --step=1

It should start function down on last migration

Related