Skip to content
Snippets Groups Projects
Commit 3d0ba265 authored by chris's avatar chris
Browse files

feat: add migration

parent fabf48d4
No related branches found
No related tags found
1 merge request!251Configurable editor server
Pipeline #65183 failed with stages
in 4 minutes and 52 seconds
const { logger } = require('@coko/server')
exports.up = async knex => {
try {
return knex.schema.table('book_settings', table => {
table.jsonb('configurableEditorTools').defaultTo(null)
})
} catch (e) {
logger.error(e)
throw new Error(
'Migration: Book Settings: add configurable Editor Tools column failed',
)
}
}
exports.down = knex =>
knex.schema.table('book_settings', table => {
table.dropColumn('configurableEditorTools')
})
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment