[migrate status] fix: no migration files message when there are no migration files (#1)

```
$ hasura migrate status
VERSION  SOURCE STATUS  DATABASE STATUS
```
This commit is contained in:
Aravind Shankar 2018-06-28 14:08:47 +05:30 committed by Shahidh K Muhammed
parent 048c067fa1
commit 59dd23cd17

View File

@ -125,13 +125,6 @@ func New(sourceUrl string, databaseUrl string, cmd bool) (*Migrate, error) {
}
m.databaseDrv = databaseDrv
// Check for first migration
// FIXME: do we need this here
if _, err = m.sourceDrv.First(); err != nil && m.isCMD {
log.Debug(err)
return m, ErrNoMigrationFiles
}
m.status = NewMigrations()
return m, nil