hasura / graphql-engine

Blazing fast, instant realtime GraphQL APIs on your DB with fine grained access control, also trigger webhooks on database events.
https://hasura.io
Apache License 2.0
31.18k stars 2.77k forks source link

Support migrations on source cockroachcloud of kind cockroach #9217

Open dvasdekis opened 2 years ago

dvasdekis commented 2 years ago

Version Information

Server Version: CLI Version (for CLI related issue): v2.15.1

Environment

Cloud (with CockroachDB Cloud)

What is the current behaviour?

I am trying to follow the steps here ("Hasura Cloud to Local Dev") to manage my remote CockroachDB Cloud schema via the Hasura Github integration.

Unfortunately when I try to run hasura migrate create init --from-server --endpoint https://myproject.hasura.app --admin-secret *mysecret*, I get the error message: time="2022-11-17T13:56:22+10:00" level=fatal msg="migrations on source cockroachcloud of kind cockroach is not supported"

What is the expected behaviour?

Cockroach-cli produces migrations files, allowing me to manage my CockroachDB schema from Hasura cloud (via Github integration).

How to reproduce the issue?

  1. Create a CockroachDB cloud account
  2. Connect Hasura Cloud to CockroachDB Cloud
  3. Run hasura init myproject then hasura migrate create init --from-server --endpoint https://myproject.hasura.app --admin-secret mysecret`

Screenshots or Screencast

PS C:\proj\dvasdekis_try_hasura_cockroach\services\hasura> hasura migrate create init --from-server --endpoint https://myproject.hasura.app --admin-secret mysecret

? Select a database to use 
> cockroachcloud

time="2022-11-17T13:56:22+10:00" level=fatal msg="migrations on source cockroachcloud of kind cockroach is not supported"
dvasdekis commented 1 year ago

1 year anniversary - does this work yet?