river-of-ebooks/migrations/20190314123654_remove_book_...

16 lines
286 B
JavaScript

exports.up = function (knex, Promise) {
return Promise.all([
knex.schema.table('book', t => {
t.dropColumns('source')
})
])
}
exports.down = function (knex, Promise) {
return Promise.all([
knex.schema.table('book', t => {
t.string('source')
})
])
}