From 2a0da0dc51c3de4f3fe4bcf44a86199f7f8d4b4a Mon Sep 17 00:00:00 2001 From: Peter Sykora Date: Fri, 18 Jan 2019 00:13:59 +0100 Subject: [PATCH] Add comment field to License table --- .../20190117231524_license-comment-field.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/migrations/20190117231524_license-comment-field.js diff --git a/src/migrations/20190117231524_license-comment-field.js b/src/migrations/20190117231524_license-comment-field.js new file mode 100644 index 0000000..91e4453 --- /dev/null +++ b/src/migrations/20190117231524_license-comment-field.js @@ -0,0 +1,12 @@ + +exports.up = function(knex, Promise) { + return knex.schema.table('License', function (table) { + table.string('comment'); + }); +}; + +exports.down = function(knex, Promise) { + return knex.schema.table('License', function (table) { + table.dropColumn('comment'); + }) +};