Env setup for production and local development

ok, so if I use a different database for each env, then how does the database gets updated between env? You have a command similar to “php artisan migrate” or just doing the npm build will take care of updating the database?