mirror of https://github.com/pressly/goose.git
Fix err
parent
9bf132172d
commit
6804955eb2
|
@ -42,7 +42,7 @@ func (m *Migration) Down(db *sql.DB) error {
|
||||||
func (m *Migration) run(db *sql.DB, direction bool) error {
|
func (m *Migration) run(db *sql.DB, direction bool) error {
|
||||||
switch filepath.Ext(m.Source) {
|
switch filepath.Ext(m.Source) {
|
||||||
case ".sql":
|
case ".sql":
|
||||||
if err = runSQLMigration(db, m.Source, m.Version, direction); err != nil {
|
if err := runSQLMigration(db, m.Source, m.Version, direction); err != nil {
|
||||||
return errors.New(fmt.Sprintf("FAIL %v, quitting migration", err))
|
return errors.New(fmt.Sprintf("FAIL %v, quitting migration", err))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue