Merge pull request #2248 from andresmanelli/circular_migration

Rename migration to re run
This commit is contained in:
Lauri Ojansivu 2019-03-11 23:32:46 +02:00 committed by GitHub
commit dc4c4d9ade
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -518,7 +518,7 @@ Migrations.add('add-templates', () => {
});
});
Migrations.add('fix-circular-reference', () => {
Migrations.add('fix-circular-reference_', () => {
Cards.find().forEach((card) => {
if (card.parentId === card._id) {
Cards.update(card._id, {$set: {parentId: ''}}, noValidateMulti);