* Scaffold project states * fixup! Scaffold project states * Fix blinking project modal * fixup! Fix blinking project modal * fixup! fixup! Fix blinking project modal * Fix an issue with the tag input autosuggest * fixup! Fix an issue with the tag input autosuggest * fixup! fixup! Fix an issue with the tag input autosuggest * Add state to project details * fixup! Add state to project details * Add state indicator on project cards * fixup! Add state indicator on project cards
28 lines
779 B
JavaScript
28 lines
779 B
JavaScript
'use strict';
|
|
|
|
const { safeAddColumns } = require('../utils/migration-utils');
|
|
|
|
module.exports = {
|
|
up: async (queryInterface, Sequelize) => {
|
|
await safeAddColumns(queryInterface, 'projects', [
|
|
{
|
|
name: 'state',
|
|
definition: {
|
|
type: Sequelize.ENUM(
|
|
'idea',
|
|
'planned',
|
|
'in_progress',
|
|
'blocked',
|
|
'completed'
|
|
),
|
|
allowNull: false,
|
|
defaultValue: 'idea',
|
|
},
|
|
},
|
|
]);
|
|
},
|
|
|
|
down: async (queryInterface, Sequelize) => {
|
|
await queryInterface.removeColumn('projects', 'state');
|
|
},
|
|
};
|