0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Added migrations to change Ghost Explore integration type

no issue

- The previous integration type is insufficient and we need to utilise a new type `core`
This commit is contained in:
Aileen Nowak 2022-08-09 09:34:56 +01:00 committed by Aileen Booker
parent 44aa5336d6
commit c813e5d96e

View file

@ -0,0 +1,24 @@
const logging = require('@tryghost/logging');
const {createTransactionalMigration} = require('../../utils');
module.exports = createTransactionalMigration(
async function up(knex) {
logging.info('Changing Ghost Explore Integration to type "core"');
await knex('integrations')
.where({
name: 'Ghost Explore',
slug: 'ghost-explore'
})
.update('type', 'core');
},
async function down(knex) {
logging.info('Changing Ghost Explore Integration to type "builtin"');
await knex('integrations')
.where({
name: 'Ghost Explore',
slug: 'ghost-explore'
})
.update('type', 'builtin');
}
);