Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v2.0.0-alpha.7] Hasura CLI can't generate migration SQL & track newly created tables on non-default schema #6772

Closed
peteygao opened this issue Apr 9, 2021 · 2 comments
Labels
a/collab-ci-cd cloud support/needs-more-info Needs more details/info/repro instructions
Milestone

Comments

@peteygao
Copy link

peteygao commented Apr 9, 2021

Hasura CLI version: v2.0.0-alpha.7
Hasura Server version: v2.0.0-cloud.2

Issue Description

When creating a new table via hasura console running against Hasura's cloud instance, creating a new table on a non-default (a.k.a. not public) schema will give an error postgres-error: no schema has been selected to create in. However, the table does get created in the underlying DB. Hasura CLI will not auto-generate a migration SQL nor track it.

However, the same issue DOES NOT occur when creating a new table via the cloud.hasura.io console (it could be because Hasura's cloud console does not generate a migration file?).

The problem appears to be with the way Hasura CLI is trying to generate the SQL migration file, and it's failing that step for tables created on non-default schema.

@scriptonist
Copy link
Contributor

@peteygao I couldn't reproduce this. can you verify if this is still the case?

@scriptonist scriptonist added the support/needs-more-info Needs more details/info/repro instructions label May 3, 2021
@rikinsk
Copy link
Member

rikinsk commented May 10, 2021

@peteygao I am closing this issue for now as we were not able to reproduce this. Feel free to reopen this in case you are still facing this problem.

@rikinsk rikinsk closed this as completed May 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a/collab-ci-cd cloud support/needs-more-info Needs more details/info/repro instructions
Projects
None yet
Development

No branches or pull requests

5 participants