* Break down TaskModal * Fix an issue with counting past times * Add daily reccurence on week * fixup! Add daily reccurence on week * fixup! fixup! Add daily reccurence on week * Improve recurring widget on task page * fixup! Improve recurring widget on task page
26 lines
734 B
JavaScript
26 lines
734 B
JavaScript
'use strict';
|
|
|
|
const {
|
|
safeAddColumns,
|
|
safeRemoveColumn,
|
|
} = require('../utils/migration-utils');
|
|
|
|
module.exports = {
|
|
up: async (queryInterface, Sequelize) => {
|
|
await safeAddColumns(queryInterface, 'tasks', [
|
|
{
|
|
name: 'recurrence_weekdays',
|
|
definition: {
|
|
type: Sequelize.TEXT,
|
|
allowNull: true,
|
|
comment:
|
|
'JSON array of weekday numbers for weekly recurrence (e.g., "[1,3,5]" for Mon, Wed, Fri)',
|
|
},
|
|
},
|
|
]);
|
|
},
|
|
|
|
down: async (queryInterface, Sequelize) => {
|
|
await safeRemoveColumn(queryInterface, 'tasks', 'recurrence_weekdays');
|
|
},
|
|
};
|