mirror of
https://github.com/plankanban/planka.git
synced 2025-12-28 17:24:59 +03:00
24 lines
521 B
JavaScript
24 lines
521 B
JavaScript
/*!
|
|
* 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');
|
|
});
|