Files
outline/server/migrations/20200812170227-remove-collection-type.js
T
2020-08-12 10:05:07 -07:00

14 lines
326 B
JavaScript

'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"
});
}
};