* Refactor ProfileSettings * Cleanup comments * Refactor TaskDetails * Refactor InboxModal * fixup! Refactor InboxModal * Fix project layout * Add visuals to project details * Refactor projectdetails * Remake project metrics * Complete project details refactor * Fix note issues and enhance view * Add filters * Fix project tasks filters * Add filters to task lists * Add filters to task lists * fixup! Add filters to task lists
27 lines
697 B
JavaScript
27 lines
697 B
JavaScript
'use strict';
|
|
|
|
const {
|
|
safeAddColumns,
|
|
safeRemoveColumn,
|
|
} = require('../utils/migration-utils');
|
|
|
|
module.exports = {
|
|
async up(queryInterface, Sequelize) {
|
|
await safeAddColumns(queryInterface, 'users', [
|
|
{
|
|
name: 'ui_settings',
|
|
definition: {
|
|
type: Sequelize.JSON,
|
|
allowNull: true,
|
|
defaultValue: JSON.stringify({
|
|
project: { details: { showMetrics: true } },
|
|
}),
|
|
},
|
|
},
|
|
]);
|
|
},
|
|
|
|
async down(queryInterface) {
|
|
await safeRemoveColumn(queryInterface, 'users', 'ui_settings');
|
|
},
|
|
};
|