supabase / splinter

Supabase Postgres Linter
https://supabase.github.io/splinter/
70 stars 6 forks source link

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

Open olirice opened 3 months ago

olirice commented 3 months ago

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