tractr / directus-sync

A CLI tool for synchronizing the schema and configuration of Directus across various environments.
GNU General Public License v3.0
241 stars 10 forks source link

Question: is it possible to select which user defined tables to include in schema sync? #111

Closed yipivan closed 1 week ago

yipivan commented 2 weeks ago

I have a use case which directus is sharing the same db with other api services, which I dun want directus to touch tables more than it needs to. But it seems when I try to pull the schema, it automatically pulls all the schemas the DB has and likewise in push action.

I also tried to edit the snapshot file in hooks and it resulted in a good looking snapshot file, but when I tried to push it, it was trying to remove some tables that are not included in the snapshot file.

I think its a pretty common use case and please point me to the right direction if I missed something, thank you!

EdouardDem commented 2 weeks ago

I think this is a duplicate of #1