Fixes to make board showing correctly.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2025-10-12 03:48:21 +03:00
parent ffb02fe0ec
commit bd8c565415
33 changed files with 2372 additions and 2747 deletions

View file

@ -331,6 +331,19 @@ Boards.attachSchema(
optional: true,
defaultValue: null,
},
migrationVersion: {
/**
* The migration version of the board structure.
* New boards are created with the latest version and don't need migration.
*/
type: Number,
// eslint-disable-next-line consistent-return
autoValue() {
if (this.isInsert && !this.isSet) {
return 1; // Latest migration version for new boards
}
},
},
subtasksDefaultListId: {
/**
@ -2196,6 +2209,7 @@ if (Meteor.isServer) {
],
permission: req.body.permission || 'private',
color: req.body.color || 'belize',
migrationVersion: 1, // Latest version - no migration needed
});
const swimlaneId = Swimlanes.insert({
title: TAPi18n.__('default'),