UNPKG

ghost

Version:

The professional publishing platform

10 lines (7 loc) 347 B
const logging = require('@tryghost/logging'); const {createIrreversibleMigration} = require('../../utils'); const {addPrimaryKey} = require('../../../schema/commands'); module.exports = createIrreversibleMigration(async (knex) => { logging.info('Adding a primary key for the brute table'); await addPrimaryKey('brute', 'key', knex); });