Skip to content

Commit

Permalink
cli: do not clear metadata during metadata apply (close #6115) (#6119)
Browse files Browse the repository at this point in the history
  • Loading branch information
scriptonist committed Nov 6, 2020
1 parent 153054b commit 01c4cd2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ This release contains the [PDV refactor (#4111)](https://github.com/hasura/graph
- console: down migrations improvements (close #3503, #4988) (#4790)
- cli: add missing global flags for seed command (#5565)
- cli: allow seeds as alias for seed command (#5693)
- cli: fix bug in metadata apply which made the server aquire some redundant and unnecessary locks (close #6115)
- docs: add docs page on networking with docker (close #4346) (#4811)
- docs: add tabs for console / cli / api workflows (close #3593) (#4948)
- docs: add postgres concepts page to docs (close #4440) (#4471)
Expand Down
15 changes: 3 additions & 12 deletions cli/migrate/database/hasuradb/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,18 +180,9 @@ func (h *HasuraDB) ApplyMetadata() error {
if err != nil {
return err
}
query := HasuraInterfaceBulk{
Type: "bulk",
Args: []interface{}{
HasuraInterfaceQuery{
Type: "clear_metadata",
Args: HasuraArgs{},
},
HasuraInterfaceQuery{
Type: "replace_metadata",
Args: obj,
},
},
query := HasuraInterfaceQuery{
Type: "replace_metadata",
Args: obj,
}
resp, body, err := h.sendv1Query(query)
if err != nil {
Expand Down

0 comments on commit 01c4cd2

Please sign in to comment.