From effa534057a1f9b445c3e954d904d2ada8caacf2 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Wed, 12 Aug 2020 10:05:07 -0700 Subject: [PATCH] migration: Remove type column --- .../20200812170227-remove-collection-type.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 server/migrations/20200812170227-remove-collection-type.js diff --git a/server/migrations/20200812170227-remove-collection-type.js b/server/migrations/20200812170227-remove-collection-type.js new file mode 100644 index 0000000000..156c1ce909 --- /dev/null +++ b/server/migrations/20200812170227-remove-collection-type.js @@ -0,0 +1,14 @@ +'use strict'; + +module.exports = { + up: async (queryInterface, Sequelize) => { + await queryInterface.removeColumn('collections', 'type'); + }, + + down: async (queryInterface, Sequelize) => { + await queryInterface.addColumn('collections', 'type', { + type: Sequelize.STRING, + defaultValue: "atlas" + }); + } +}; \ No newline at end of file