db migration for filters

pull/32/head
unknown 2018-11-19 18:37:28 -05:00
parent 793e6db286
commit 5a6454a047
1 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
exports.up = function (knex, Promise) {
return Promise.all([
knex.schema.table('targeturl', t => {
t.string('title')
t.string('author')
t.string('publisher')
t.string('isbn')
})
])
}
exports.down = function (knex, Promise) {
return Promise.all([
knex.schema.table('targeturl', t => {
t.dropColumns('title', 'author', 'publisher', 'isbn')
})
])
}