#Best way to version control Roles and Permissions?

14 messages · Page 1 of 1 (latest)

quartz sable
#

On google I see some answers. From writing migrations to importing JSON or something.

But they never show you step by step.

Can someone teach me?

upper fableBOT
#

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.)

upper fableBOT
#

✅ Best way to version control Roles and Permissions?

upper fableBOT
upper fableBOT
quartz sable
#

Sorry accidentally closed it, reopening

#

Best way to version control Roles and Permissions?

calm meteor
#

We don’t support this. You could manually backup and check-in the directus system collections

midnight whale
#

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 …

paper furnace
#

I use a own db sync script with node an sql

burnt ibex
quartz sable
#

@burnt ibex Doesn't work

#

I have tried this before

#

It gives a "fetch not found" error