3
CLI command to clean/reset system collections
Source: directus/directus#25154 · opened by @amosmurmu
Summary CLI command to reset directus system collections Basic Example or command would remove all directus_* tables from database Motivation • I was working with existing database then used • I did few changes to my database and then wanted to remove directus and want to start from clean slate but there was no command for it • I don't want to drop my database tables and schema and start again very time consuming • I don't want to use manual SQL or directus sdk to remove them Detailed Design The directus reset CLI command would connect to the existing database using the same configuration as bootstrap, and identify all system collections (those starting with directus_). It would then drop these collections using Knex with CASCADE. Optionally, the command could support flags like --dry-run or --preserve-users. This is a non-destructive way to reset the Directus layer without touching user-defined collections. Requirements List …
No pledges yet. Be the first to back this.
Comments
Similar requests
Restrict "Show Hidden Collections" to Admin Users
25 votes · 0 comments
Collapse Database-Only Collections in Data Model page
2 votes · 0 comments
Access Policy for Data Model / Content Collection Groups (Folders)
2 votes · 0 comments
Reset password form asks users to sign in even for roles without app access
1 vote · 0 comments
Grant permissions on all user collections
1 vote · 0 comments
No comments yet.