Skip to content

Commit cf15fd9

Browse files
henrybarretogustavosbarreto
authored andcommitted
fix(api): remove down on migration 99 as isn't necessary
1 parent 5e3ee7d commit cf15fd9

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

api/store/mongo/migrations/migration_99.go

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,8 @@ var migration99 = migrate.Migration{
3838
"action": "Down",
3939
}).Info("Reverting migration")
4040

41-
_, err := db.Collection("sessions").
42-
UpdateMany(
43-
ctx,
44-
bson.M{
45-
"recorded": false,
46-
"events.types": bson.M{"$size": 0},
47-
},
48-
bson.M{"$set": bson.M{"recorded": true}},
49-
)
41+
// NOTE: This migration shouldn't be reverted.
5042

51-
return err
43+
return nil
5244
}),
5345
}

0 commit comments

Comments
 (0)