Database schema migration is the management of incremental, reversible changes and version control to relational database schemas. The migrations basically track granular changes to your database schema which are reflected as separate scripted files.
Golang Goose is a database migration tool. It allows you to manage your database schema by creating incremental SQL changes or Go functions.
Checkout this guide detailing how to manage database migrations with golang goose - https://citizix.com/managing-database-migrations-with-golang-goose-using-incremental-sql-changes/