mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
reducing card size in database if no planning poker was started
reducing: - cards collection size - database size - size to transfer from server to client (publish / subscribe)
This commit is contained in:
parent
4a7fa7c396
commit
a929d1e3a4
2 changed files with 16 additions and 13 deletions
|
@ -351,7 +351,7 @@ Cards.attachSchema(
|
||||||
},
|
},
|
||||||
'poker.question': {
|
'poker.question': {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
defaultValue: false,
|
optional: true,
|
||||||
},
|
},
|
||||||
'poker.one': {
|
'poker.one': {
|
||||||
/**
|
/**
|
||||||
|
@ -359,7 +359,6 @@ Cards.attachSchema(
|
||||||
*/
|
*/
|
||||||
type: [String],
|
type: [String],
|
||||||
optional: true,
|
optional: true,
|
||||||
defaultValue: [],
|
|
||||||
},
|
},
|
||||||
'poker.two': {
|
'poker.two': {
|
||||||
/**
|
/**
|
||||||
|
@ -367,7 +366,6 @@ Cards.attachSchema(
|
||||||
*/
|
*/
|
||||||
type: [String],
|
type: [String],
|
||||||
optional: true,
|
optional: true,
|
||||||
defaultValue: [],
|
|
||||||
},
|
},
|
||||||
'poker.three': {
|
'poker.three': {
|
||||||
/**
|
/**
|
||||||
|
@ -375,7 +373,6 @@ Cards.attachSchema(
|
||||||
*/
|
*/
|
||||||
type: [String],
|
type: [String],
|
||||||
optional: true,
|
optional: true,
|
||||||
defaultValue: [],
|
|
||||||
},
|
},
|
||||||
'poker.five': {
|
'poker.five': {
|
||||||
/**
|
/**
|
||||||
|
@ -383,7 +380,6 @@ Cards.attachSchema(
|
||||||
*/
|
*/
|
||||||
type: [String],
|
type: [String],
|
||||||
optional: true,
|
optional: true,
|
||||||
defaultValue: [],
|
|
||||||
},
|
},
|
||||||
'poker.eight': {
|
'poker.eight': {
|
||||||
/**
|
/**
|
||||||
|
@ -391,7 +387,6 @@ Cards.attachSchema(
|
||||||
*/
|
*/
|
||||||
type: [String],
|
type: [String],
|
||||||
optional: true,
|
optional: true,
|
||||||
defaultValue: [],
|
|
||||||
},
|
},
|
||||||
'poker.thirteen': {
|
'poker.thirteen': {
|
||||||
/**
|
/**
|
||||||
|
@ -399,7 +394,6 @@ Cards.attachSchema(
|
||||||
*/
|
*/
|
||||||
type: [String],
|
type: [String],
|
||||||
optional: true,
|
optional: true,
|
||||||
defaultValue: [],
|
|
||||||
},
|
},
|
||||||
'poker.twenty': {
|
'poker.twenty': {
|
||||||
/**
|
/**
|
||||||
|
@ -407,7 +401,6 @@ Cards.attachSchema(
|
||||||
*/
|
*/
|
||||||
type: [String],
|
type: [String],
|
||||||
optional: true,
|
optional: true,
|
||||||
defaultValue: [],
|
|
||||||
},
|
},
|
||||||
'poker.forty': {
|
'poker.forty': {
|
||||||
/**
|
/**
|
||||||
|
@ -415,7 +408,6 @@ Cards.attachSchema(
|
||||||
*/
|
*/
|
||||||
type: [String],
|
type: [String],
|
||||||
optional: true,
|
optional: true,
|
||||||
defaultValue: [],
|
|
||||||
},
|
},
|
||||||
'poker.oneHundred': {
|
'poker.oneHundred': {
|
||||||
/**
|
/**
|
||||||
|
@ -423,7 +415,6 @@ Cards.attachSchema(
|
||||||
*/
|
*/
|
||||||
type: [String],
|
type: [String],
|
||||||
optional: true,
|
optional: true,
|
||||||
defaultValue: [],
|
|
||||||
},
|
},
|
||||||
'poker.unsure': {
|
'poker.unsure': {
|
||||||
/**
|
/**
|
||||||
|
@ -431,16 +422,14 @@ Cards.attachSchema(
|
||||||
*/
|
*/
|
||||||
type: [String],
|
type: [String],
|
||||||
optional: true,
|
optional: true,
|
||||||
defaultValue: [],
|
|
||||||
},
|
},
|
||||||
'poker.end': {
|
'poker.end': {
|
||||||
type: Date,
|
type: Date,
|
||||||
optional: true,
|
optional: true,
|
||||||
defaultValue: null,
|
|
||||||
},
|
},
|
||||||
'poker.allowNonBoardMembers': {
|
'poker.allowNonBoardMembers': {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
defaultValue: false,
|
optional: true,
|
||||||
},
|
},
|
||||||
'poker.estimation': {
|
'poker.estimation': {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1443,3 +1443,17 @@ Migrations.add('attachment-cardCopy-fix-boardId-etc', () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
Migrations.add('remove-unused-planning-poker', () => {
|
||||||
|
Cards.update(
|
||||||
|
{
|
||||||
|
"poker.question": false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
$unset: {
|
||||||
|
"poker": 1,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
noValidateMulti,
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue