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.
Files
outline/server/migrations/20170603185012-add-collection-documentStructure-migration.js
Jori Lallo b64e47f42a Circle CI (#113)
Circle CI
2017-07-08 21:13:47 -07:00

17 lines
472 B
JavaScript

module.exports = {
up: (queryInterface, Sequelize) => {
queryInterface.renameTable('atlases', 'collections').then(() => {
queryInterface.addColumn('collections', 'documentStructure', {
type: Sequelize.JSONB,
allowNull: true,
});
});
},
down: (queryInterface, _Sequelize) => {
queryInterface.renameTable('collections', 'atlases').then(() => {
queryInterface.removeColumn('atlases', 'documentStructure');
});
},
};