mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Fix deletion of collection that has custom permissions
This commit is contained in:
@@ -242,6 +242,7 @@ export default class CollectionsService {
|
||||
await this.knex('directus_presets').delete().whereIn('collection', collectionKeys);
|
||||
await this.knex('directus_revisions').delete().whereIn('collection', collectionKeys);
|
||||
await this.knex('directus_activity').delete().whereIn('collection', collectionKeys);
|
||||
await this.knex('directus_permissions').delete().whereIn('collection', collectionKeys);
|
||||
|
||||
await this.knex('directus_relations')
|
||||
.delete()
|
||||
|
||||
Reference in New Issue
Block a user