migration: Remove type column

This commit is contained in:
Tom Moor committed 2020-08-12 10:05:07 -07:00
1 parent bcabd8ef3f
commit effa534057
1 file changed
+14
@@ -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"
});
}
};