UNPKG

@tanglemedia/directus-collection-flex-editor

Version:

Creates the flex table and some basic related nodes like image, resource, embed, and section

14 lines (10 loc) 519 B
import { createPermission } from "./helpers/permission.mjs"; export async function up(knex) { await createPermission(knex, "tngl_flex_content", "Website", ["read"]); await createPermission(knex, "tngl_flex_content", "Staff", ["create", "read", "update", "delete"]); await createPermission(knex, "tngl_flex_content_nodes", "Website", ["read"]); await createPermission(knex, "tngl_flex_content_nodes", "Staff", ["create", "read", "update", "delete"]); } export async function down(knex) { // No rollback needed }