How to migration database from one environment to another?

We have Grafana in two environments, development and production. The production environment deployed using Grafana’s highly available architecture with PostgreSQL as a database. How can we run database migrations from development to production and vice versa without affecting user data and dashboard? Is there will be any specific query that can help us in this regard, or do we have to restore the complete database dump?