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:
parent
44aa5336d6
commit
c813e5d96e
1 changed files with 24 additions and 0 deletions
|
@ -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');
|
||||
}
|
||||
);
|
Loading…
Add table
Reference in a new issue