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

[FEATURE]: Ability to filter / manage tables by schema on drizzle-kit push / pull #3967

Open
1 task done
heinsenberg82 opened this issue Jan 17, 2025 · 0 comments
Open
1 task done
Labels
enhancement New feature or request

Comments

@heinsenberg82
Copy link

heinsenberg82 commented Jan 17, 2025

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request 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 or drizzle-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 inside storage schema (reason: to apply and manage access control policies).

If i do schemaFilter: ["public", "storage"] on drizzle.config.ts, when I call npx drizzle-kit push Drizzle wants to drop all other tables inside storage 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.

@heinsenberg82 heinsenberg82 added the enhancement New feature or request label Jan 17, 2025
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