graphql-engine/cli/migrate
Aravind c258fa75cb
cli: add --goto flag in hasura migrate apply (close #2689) (#3715)
* cli: add --goto <version> flag to migrate command

* cli: fix error encoutered in goto, when on version -1

* do down migrations one step down

* reorganize code

* in case of up "gotos" make sure that all previous migration in migration chain are applied

* modify readUp and readDown functions to account for --goto use case

* refactor to clean up and adopt a better implementation addressing the comments

* remove empty error handling step

* return ErrNoChange when no migrations were applied

* respect m.stop() can panic so place conditional cases after that and add a couple other small fixes

* fix bug caused by early checking of versions

* fix to add migration_mode and nil version check

* add some more examples for migrate apply command

Co-authored-by: Aravind Shankar <face11301@gmail.com>
Co-authored-by: Shahidh K Muhammed <muhammedshahid.k@gmail.com>
2020-02-03 12:33:32 +05:30
..
api export metadata without nulls, empty arrays & default values (#3393) 2019-12-14 00:47:38 -06:00
cmd cli: add --goto flag in hasura migrate apply (close #2689) (#3715) 2020-02-03 12:33:32 +05:30
database cli(fix): better error handling on non-json api responses (clos… (#3104) 2019-12-27 16:28:36 +05:30
source add name to migrate status response (close #2376) (#3109) 2019-11-28 17:06:16 +05:30
testing [cli] add tests for migrate commands (#9) 2018-06-28 14:06:57 +05:30
migrate.go cli: add --goto flag in hasura migrate apply (close #2689) (#3715) 2020-02-03 12:33:32 +05:30
migration.go add hasura cli package 2018-06-24 19:10:48 +05:30
status.go add name to migrate status response (close #2376) (#3109) 2019-11-28 17:06:16 +05:30
util.go add hasura cli package 2018-06-24 19:10:48 +05:30