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:
parent
c2dc8a78c5
commit
3147de54c8
3 changed files with 16 additions and 0 deletions
|
@ -103,6 +103,7 @@ module.exports = {
|
|||
subscribeToOwnCards: false,
|
||||
createdAt: now,
|
||||
updatedAt: now,
|
||||
locked: true,
|
||||
};
|
||||
|
||||
const identityProviderUser = await IdentityProviderUser.findOne({
|
||||
|
|
|
@ -67,6 +67,10 @@ module.exports = {
|
|||
type: 'ref',
|
||||
columnName: 'password_changed_at',
|
||||
},
|
||||
locked: {
|
||||
type: 'boolean',
|
||||
columnName: 'locked',
|
||||
},
|
||||
|
||||
// ╔═╗╔╦╗╔╗ ╔═╗╔╦╗╔═╗
|
||||
// ║╣ ║║║╠╩╗║╣ ║║╚═╗
|
||||
|
|
|
@ -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');
|
||||
});
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue