I am using a declarative database schema. My workflow is:
1. Define and modify schema files
2. Run supabase db diff --schema public -f
3. Apply the new migration file generated to the db with "supabase db reset"
I have now started to add "views" to my schema. Whenever I go through this workflow, the generated migration file will always contain all views. All subsequent migration files will contain the views.
Does anyone understand the reason?