mirror of
https://github.com/status-im/migrate.git
synced 2025-02-24 00:38:07 +00:00
fix downPipe bug
This commit is contained in:
parent
7852745c6b
commit
707c9b9c07
@ -106,8 +106,9 @@ func DownPipe(url, migrationsPath string, pipe chan interface{}) chan interface{
|
||||
sendErrorAndClosePipe(err, pipe)
|
||||
return pipe
|
||||
}
|
||||
|
||||
if len(applyMigrationFiles) > 0 {
|
||||
go d.Migrate(applyMigrationFiles, nil)
|
||||
go d.Migrate(applyMigrationFiles, pipe)
|
||||
return pipe
|
||||
} else {
|
||||
sendErrorAndClosePipe(errors.New("No migration files to apply."), pipe)
|
||||
|
Loading…
x
Reference in New Issue
Block a user