Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Robinvm's avatar

How to: Manage database in forge

Hello, i want to make some changes in tables of the database but i dont want to lose the data in it, how can i do this the best way?

0 likes
4 replies
Robinvm's avatar

@SaeedPrez but with migrations the data inside is gone, i dont want that, i need to save it with a backup or something

ejdelmonico's avatar

Just add the doctrine/dbal package and you can do it with a migration like @saeedprez stated. Look in the laravel docs under migrations.

https://laravel.com/docs/5.4/migrations towards the bottom of the page. Also, reference the dbal docs. Your data should not get destroyed but definitely do a DB dump prior to.

Please or to participate in this conversation.