mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 20:59:44 +02:00
parent
a1cb04ea8e
commit
1329da3fe5
31 changed files with 277 additions and 40 deletions
|
@ -40,6 +40,11 @@ module.exports = {
|
|||
isNotEmptyString: true,
|
||||
allowNull: true,
|
||||
},
|
||||
language: {
|
||||
type: 'string',
|
||||
isNotEmptyString: true,
|
||||
allowNull: true,
|
||||
},
|
||||
subscribeToOwnCards: {
|
||||
type: 'boolean',
|
||||
},
|
||||
|
@ -62,6 +67,7 @@ module.exports = {
|
|||
'username',
|
||||
'phone',
|
||||
'organization',
|
||||
'language',
|
||||
'subscribeToOwnCards',
|
||||
]);
|
||||
|
||||
|
|
|
@ -32,6 +32,11 @@ module.exports = {
|
|||
isNotEmptyString: true,
|
||||
allowNull: true,
|
||||
},
|
||||
language: {
|
||||
type: 'string',
|
||||
isNotEmptyString: true,
|
||||
allowNull: true,
|
||||
},
|
||||
subscribeToOwnCards: {
|
||||
type: 'boolean',
|
||||
},
|
||||
|
@ -66,6 +71,7 @@ module.exports = {
|
|||
'avatarUrl',
|
||||
'phone',
|
||||
'organization',
|
||||
'language',
|
||||
'subscribeToOwnCards',
|
||||
]);
|
||||
|
||||
|
|
|
@ -53,6 +53,11 @@ module.exports = {
|
|||
isNotEmptyString: true,
|
||||
allowNull: true,
|
||||
},
|
||||
language: {
|
||||
type: 'string',
|
||||
isNotEmptyString: true,
|
||||
allowNull: true,
|
||||
},
|
||||
subscribeToOwnCards: {
|
||||
type: 'boolean',
|
||||
defaultsTo: false,
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
module.exports.up = async (knex) =>
|
||||
knex.schema.table('user_account', (table) => {
|
||||
/* Columns */
|
||||
|
||||
table.text('language');
|
||||
});
|
||||
|
||||
module.exports.down = async (knex) =>
|
||||
knex.schema.table('user_account', (table) => {
|
||||
table.dropColumn('language');
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue