feat: Restore toggleable due dates (#1332)

This commit is contained in:
Steven Correia
2025-09-05 13:55:20 +02:00
committed by GitHub
parent 7da241c5a3
commit 37bd4d1349
14 changed files with 140 additions and 17 deletions
@@ -0,0 +1,23 @@
/*!
* Copyright (c) 2024 PLANKA Software GmbH
* Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md
*/
exports.up = async (knex) => {
await knex.schema.alterTable('card', (table) => {
/* Columns */
table.boolean('is_due_completed');
});
return knex('card')
.update({
isDueCompleted: false,
})
.whereNotNull('due_date');
};
exports.down = (knex) =>
knex.schema.table('card', (table) => {
table.dropColumn('is_due_completed');
});