UNPKG

@tanglemedia/directus-collection-flex-editor

Version:

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

18 lines (15 loc) 648 B
const COLLECTION_M2M_FILE = "tngl_flex_content_nodes"; export async function up(knex) { // remove all node components from flex editor toolbar // adding node component into the flex editor has been delegated to each node component package // update the directus_relations row with the updated flex component list await knex("directus_relations") .where("many_collection", COLLECTION_M2M_FILE) .andWhere("many_field", "item") .andWhere("one_collection_field", "collection") .andWhere("junction_field", "tngl_flex_content_id") .update({ one_allowed_collections: null, }); } export async function down(knex) {}