Update migration.go

golint pass on go migrations
pull/30/head
Jamie Stackhouse 2017-04-12 11:58:26 -03:00 committed by GitHub
parent 2784f38ca2
commit 261b46c60f
1 changed files with 5 additions and 3 deletions

View File

@ -152,14 +152,16 @@ import (
)
func init() {
goose.AddMigration(Up_{{.}}, Down_{{.}})
goose.AddMigration(Up{{.}}, Down{{.}})
}
func Up_{{.}}(tx *sql.Tx) error {
// Up{{.}} updates the database to the new requirements
func Up{{.}}(tx *sql.Tx) error {
return nil
}
func Down_{{.}}(tx *sql.Tx) error {
// Down{{.}} should send the database back to the state it was from before Up was ran
func Down{{.}}(tx *sql.Tx) error {
return nil
}
`))