Create directory
mkdir migrations
/migrations/person.sql
CREATE TABLE IF NOT EXISTS Persons (
PersonID int,
LastName varchar(255),
FirstName varchar(255),
Address varchar(255),
City varchar(255)
);
Example
func main() {
db := DB{}
db.Set("postgres", "postgres://postgres:postgres@localhost:5432/eventstore?sslmode=disable")
defer db.Close()
db.Migrate("./migrations/")
}