This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
outline/server/migrations/20200812170227-remove-collection-type.js
Tom Moor d055021ad4
chore: Remove all usage of collection.type (#1445)
* chore: Remove all usage of collection.type

* migration: Remove type column
2020-08-12 10:49:02 -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"
});
}
};