UNPKG

@directus/api

Version:

Directus is a real-time API and App dashboard for managing SQL database content

13 lines (12 loc) 475 B
import { getHelpers } from '../helpers/index.js'; export async function up(knex) { const helper = getHelpers(knex).schema; const type = helper.isOneOfClients(['oracle', 'cockroachdb']) ? 'text' : 'string'; await helper.changeToType('directus_webhooks', 'collections', type); } export async function down(knex) { await getHelpers(knex).schema.changeToType('directus_webhooks', 'collections', 'string', { nullable: false, length: 255, }); }