1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-08-10 16:05:35 +02:00

added locked field.

This commit is contained in:
Jeffrey 2023-08-09 18:22:59 -05:00
parent c2dc8a78c5
commit 3147de54c8
3 changed files with 16 additions and 0 deletions

View file

@ -103,6 +103,7 @@ module.exports = {
subscribeToOwnCards: false,
createdAt: now,
updatedAt: now,
locked: true,
};
const identityProviderUser = await IdentityProviderUser.findOne({

View file

@ -67,6 +67,10 @@ module.exports = {
type: 'ref',
columnName: 'password_changed_at',
},
locked: {
type: 'boolean',
columnName: 'locked',
},
// ╔═╗╔╦╗╔╗ ╔═╗╔╦╗╔═╗
// ║╣ ║║║╠╩╗║╣ ║║╚═╗

View file

@ -0,0 +1,11 @@
module.exports.up = async (knex) => {
return knex.schema.table('user_account', (table) => {
table.boolean('locked').default(false);
});
};
module.exports.down = async (knex) => {
return knex.schema.table('user_account', (table) => {
table.dropColumn('locked');
});
};