UNPKG

ghost

Version:

The professional publishing platform

20 lines (17 loc) 556 B
const logging = require('@tryghost/logging'); const {createTransactionalMigration} = require('../../utils'); module.exports = createTransactionalMigration( async function up(knex) { logging.info('Updating setting: "pintura" to "true"'); await knex('settings') .where({ key: 'pintura' }) .update({ value: 'true' }); }, async function down() { // no-op: this is a one way migration to set the default value for pintura integration } );