mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Merge pull request #2248 from andresmanelli/circular_migration
Rename migration to re run
This commit is contained in:
commit
dc4c4d9ade
1 changed files with 1 additions and 1 deletions
|
|
@ -518,7 +518,7 @@ Migrations.add('add-templates', () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
Migrations.add('fix-circular-reference', () => {
|
Migrations.add('fix-circular-reference_', () => {
|
||||||
Cards.find().forEach((card) => {
|
Cards.find().forEach((card) => {
|
||||||
if (card.parentId === card._id) {
|
if (card.parentId === card._id) {
|
||||||
Cards.update(card._id, {$set: {parentId: ''}}, noValidateMulti);
|
Cards.update(card._id, {$set: {parentId: ''}}, noValidateMulti);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue