* Add next suggestions and remove console logs * Add pomodoro timer * Add pomodoro switch in settings * Fix pomodoro setting * Add timezones to settings * Fix an issue with password reset * Cleanup * Sort tags alphabetically * Clean up today's view * Add an indicator for repeatedly added to today * Refactor tags * Add due date today item * Move recurrence to the subtitle area * Fix today layout * Add a badge to Inbox items * Move inbox badge to sidebar * Add quotes and progress bar * Add translations for quotes * Fix test issues * Add helper script for docker local * Set up overdue tasks * Add linux/arm/v7 build to deploy script * Add linux/arm/v7 build to deploy script pt2 * Fix an issue with helmet and SSL * Add volume db persistence * Fix cog icon issues
22 lines
No EOL
612 B
JavaScript
22 lines
No EOL
612 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
async up(queryInterface, Sequelize) {
|
|
// Add completed_at column to tasks table
|
|
await queryInterface.addColumn('tasks', 'completed_at', {
|
|
type: Sequelize.DATE,
|
|
allowNull: true
|
|
});
|
|
|
|
// Add an index for better query performance
|
|
await queryInterface.addIndex('tasks', ['completed_at']);
|
|
},
|
|
|
|
async down(queryInterface, Sequelize) {
|
|
// Remove the index first
|
|
await queryInterface.removeIndex('tasks', ['completed_at']);
|
|
|
|
// Remove the completed_at column
|
|
await queryInterface.removeColumn('tasks', 'completed_at');
|
|
}
|
|
}; |