db migration for filters
parent
793e6db286
commit
5a6454a047
|
@ -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')
|
||||
})
|
||||
])
|
||||
}
|
Loading…
Reference in New Issue