river-of-ebooks/migrations/20190220133443_add_srcHost_...

16 lines
290 B
JavaScript
Raw Normal View History

2019-02-20 18:38:25 +00:00
exports.up = function (knex, Promise) {
return Promise.all([
knex.schema.table('book', t => {
t.string('hostname')
})
])
}
exports.down = function (knex, Promise) {
return Promise.all([
knex.schema.table('book', t => {
t.dropColumns('hostname')
})
])
}