From 20b92fa74d926a04724f6a8cd30b2327ed63edd5 Mon Sep 17 00:00:00 2001 From: Nicholas Duffy Date: Mon, 8 May 2017 12:10:25 -0600 Subject: [PATCH] Fix comments in final 3 files --- redo.go | 2 +- status.go | 2 +- up.go | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/redo.go b/redo.go index c7f7e1e..6f9049f 100644 --- a/redo.go +++ b/redo.go @@ -4,7 +4,7 @@ import ( "database/sql" ) -// Redo : Roll back the most recently applied migration, then run it again. +// Redo rolls back the most recently applied migration, then runs it again. func Redo(db *sql.DB, dir string) error { currentVersion, err := GetDBVersion(db) if err != nil { diff --git a/status.go b/status.go index bcf937b..5f57421 100644 --- a/status.go +++ b/status.go @@ -8,7 +8,7 @@ import ( "time" ) -// Status : Print the status of all migrations. +// Status prints the status of all migrations. func Status(db *sql.DB, dir string) error { // collect all migrations migrations, err := CollectMigrations(dir, minVersion, maxVersion) diff --git a/up.go b/up.go index 5907c9d..448a159 100644 --- a/up.go +++ b/up.go @@ -5,7 +5,7 @@ import ( "fmt" ) -// UpTo : Migrate up to a specific version. +// UpTo migrates up to a specific version. func UpTo(db *sql.DB, dir string, version int64) error { migrations, err := CollectMigrations(dir, minVersion, version) if err != nil { @@ -33,12 +33,12 @@ func UpTo(db *sql.DB, dir string, version int64) error { } } -// Up : Apply all available migrations. +// Up applies all available migrations. func Up(db *sql.DB, dir string) error { return UpTo(db, dir, maxVersion) } -// UpByOne : Migrate up by a single version. +// UpByOne migrates up by a single version. func UpByOne(db *sql.DB, dir string) error { migrations, err := CollectMigrations(dir, minVersion, maxVersion) if err != nil {