mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-11-10 10:29:12 +03:00
[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:
parent
048c067fa1
commit
59dd23cd17
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user