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

Add CLI flag for automated migration table updates in Supabase db pull #2826

Open
ollebergkvist opened this issue Nov 2, 2024 · 0 comments

Comments

@ollebergkvist
Copy link

Is your feature request related to a problem? Please describe.
supabase db pull in automated scripts (like package.json pre-scripts), the command requires manual interaction to confirm migration history table updates. This breaks automation flows and CI/CD pipelines where user input isn't possible.

Describe the solution you'd like

  • --auto-update-migrations=[yes|no] to automatically answer the "Update remote migration history table?" prompt
  • Exit with code 0 when no schema changes are found
  • Support for environment variables to control this behavior (e.g. SUPABASE_AUTO_UPDATE_MIGRATIONS)

Describe alternatives you've considered

  • Shell scripting to pipe "y" responses

Additional context
This would enable seamless integration with development workflows and CI/CD pipelines.

@ollebergkvist ollebergkvist changed the title Add -y flag to force updating migration tables Add CLI flag for automated migration table updates in Supabase db pull Nov 2, 2024
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

1 participant