#Best way to version control Roles and Permissions?
14 messages · Page 1 of 1 (latest)
Thanks for posting! This is a community powered server, so you may or may not get an answer based on available help and expertise. To increase your chances of somebody being able to help you, please help us help you making sure you:
- Adding an explanation of exactly what you're trying to achieve.
- Adding any and all related code or previous attempts.
- Describing the exact issue or error you are facing.
- Posting any screenshots if applicable.
- Reading through https://stackoverflow.com/help/how-to-ask.
When you're done with this thread, please close it. Thanks! ✨
(If you have a support agreement and need help, please contact the core team via email.)
✅ Best way to version control Roles and Permissions?
This post is now closed. If you want or need to continue this topic, just send another message and it will be unarchived.
This post is now closed. If you want or need to continue this topic, just send another message and it will be unarchived.
Sorry accidentally closed it, reopening
Best way to version control Roles and Permissions?
We don’t support this. You could manually backup and check-in the directus system collections
You can create a npm command (like npm run dump) that executes a bash script which will make a dump of the database tables you want to backup. Write it to your project folder and there you have it …
I use a own db sync script with node an sql
This tool might become the "way to go" for such devops tasks. https://github.com/CodingButter-LLC/directus-migrator