[FEATURE]: Ability to filter / manage tables by schema on drizzle-kit push / pull #3967
Open
1 task done
Labels
enhancement
New feature or request
Feature hasn't been suggested before.
Describe the enhancement you want to request
It would be nice if one should be able to filter tables by schema, when choosing the tables that will be managed by
drizzle-kit push
ordrizzle-kit pull
.For instance, my project uses Supabase and I need to manage all the tables inside public schema, but also only the
objects
table insidestorage
schema (reason: to apply and manage access control policies).If i do
schemaFilter: ["public", "storage"]
ondrizzle.config.ts
, when I callnpx drizzle-kit push
Drizzle wants to drop all other tables insidestorage
schema, since I'm not defining / managing them inside my code.And using only the
tablesFilter
would be a pain, since I would have to check the list of filtered tables every time I change my database schema.The text was updated successfully, but these errors were encountered: