Files
planka/server/db/migrations/20260808120000_add_auto_logout_preference.js
Daniel Hiller 3ef87a8603 feat: Add configurable auto logout on inactivity
Users can pick an inactivity timeout in their preferences. A warning
appears 30 seconds before, and activity or a logout is synchronised
across open tabs.
2026-08-08 00:24:16 +02:00

15 lines
446 B
JavaScript

/*!
* Copyright (c) 2024 PLANKA Software GmbH
* Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md
*/
module.exports.up = (knex) =>
knex.schema.alterTable('user_account', (table) => {
table.string('auto_logout_mode').notNullable().defaultTo('30m');
});
module.exports.down = (knex) =>
knex.schema.alterTable('user_account', (table) => {
table.dropColumn('auto_logout_mode');
});