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

atlas.hcl: enforce authenticated (atlas login) usage for CLI commands #3214

Open
torchsec-roni opened this issue Nov 6, 2024 · 2 comments
Open

Comments

@torchsec-roni
Copy link

Hey, we recently encountered the following error when trying to run atlas migrate diff:

➜  atlas migrate --env local diff
Error: drop enum type "my_favorite_enum": pq: cannot drop type my_favorite_enum because other objects depend on it

This was resolved by running:

➜  atlas login

The error message was very confusing.

@a8m
Copy link
Member

a8m commented Nov 7, 2024

Hey! Thanks for the feedback, @torchsec-roni.

That's because when you're not logged in, some database features will not be managed by Atlas. We'll add an option in the atlas.hcl file to enforce login. I'll keep this issue open so you can track the progress of it.

@a8m a8m changed the title Confusing error on enums when not logged in to atlas cloud atlas.hcl: enforce authenticated (atlas login) usage for CLI commands Nov 7, 2024
@torchsec-roni
Copy link
Author

torchsec-roni commented Nov 7, 2024

Sounds great! This will be very helpful for our team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants