Handling Database Migrations in Go

“I got my database schema correct on the first try.” -No one ever. Like most big projects, gophish needed a way to automatically manage changes to our database schema. As new features were being added, we found ourselves in a situation that required us to add or modify columns and tables to store the new data. In a hosted environment, this is no problem since we control the database and can make schema changes as we see fit. »