diff --git a/migrations/20181119183500_add_filters_to_targeturl.js b/migrations/20181119183500_add_filters_to_targeturl.js new file mode 100644 index 0000000..26cbdbb --- /dev/null +++ b/migrations/20181119183500_add_filters_to_targeturl.js @@ -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') + }) + ]) +}