From 261b46c60fbc51bd3bebe552674ef027a8e2c956 Mon Sep 17 00:00:00 2001 From: Jamie Stackhouse Date: Wed, 12 Apr 2017 11:58:26 -0300 Subject: [PATCH] Update migration.go golint pass on go migrations --- migration.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/migration.go b/migration.go index e014c57..e37313c 100644 --- a/migration.go +++ b/migration.go @@ -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 } `))