n2fole00's avatar

How to make the db revalidate after migrate:fresh

Hi, If I change my database migration in some way and run php artisan migrate:fresh the changes don't seem to take effect until I revalidate the db connection (sqlite) in the db client (dBeaver). Is there a setting in Laravel I've missed that would do this for me?

Thanks.

0 likes
1 reply
gych's avatar
gych
Best Answer
Level 29

This is not related to a setting, its how your db client works. I also have to refresh my db client in order for it to reflect the new changes made by a migration.

Just press F5 to refresh the changes and if you really want you can set up auto refresh. Auto refresh will refresh the database every x seconds but personally I don't find it worth to set this up.

https://github.com/dbeaver/dbeaver/wiki/Data-Refresh

1 like

Please or to participate in this conversation.