@directus/api
Version:
Directus is a real-time API and App dashboard for managing SQL database content
18 lines (17 loc) • 508 B
JavaScript
import { getHelpers } from '../helpers/index.js';
export async function up(knex) {
const helper = getHelpers(knex).schema;
await helper.changeToType('directus_panels', 'icon', 'string', {
nullable: true,
default: null,
length: 30,
});
}
export async function down(knex) {
const helper = getHelpers(knex).schema;
await helper.changeToType('directus_panels', 'icon', 'string', {
nullable: true,
default: 'insert_chart',
length: 30,
});
}