mirror of
https://github.com/plankanban/planka.git
synced 2025-12-24 17:25:00 +03:00
feat: Add board setting to expand task lists by default
Closes #683, closes #1333
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
/*!
|
||||
* 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('board', (table) => {
|
||||
/* Columns */
|
||||
|
||||
table.boolean('expand_task_lists_by_default').notNullable().defaultTo(false);
|
||||
});
|
||||
|
||||
return knex.schema.alterTable('board', (table) => {
|
||||
table.boolean('expand_task_lists_by_default').notNullable().alter();
|
||||
});
|
||||
};
|
||||
|
||||
exports.down = (knex) =>
|
||||
knex.schema.table('board', (table) => {
|
||||
table.dropColumn('expand_task_lists_by_default');
|
||||
});
|
||||
Reference in New Issue
Block a user