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

Lint to detect if tables/views/functions were created outside of migrations #32

Open
olirice opened this issue Apr 3, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@olirice
Copy link
Collaborator

olirice commented Apr 3, 2024

The latest version of the supabase CLI inserts migration statements into the database as text[]

This lint would iterate through tables/functions/views and check to see if they are (at least) referenced somewhere in the migration statements. If they are not, its highly likely that the entity was created outside of migrations on accident and we should flag it

@olirice olirice added the enhancement New feature or request label Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant