mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-25 06:58:39 +00:00
- Changed the way a regatta is migrated from a 'without changing boats' regatta to 'with changing boats' regatta by removing the public setter and using a special derived MigratableRegattaImpl type which provides the actual migration function
- Change COMPETITOR collection migration by renaming the old COMPETITOR collection to COMPETITOR_BAK and creating all migrated competitors in the now empty COMPETITORS collection
This commit is contained in:
+1
-1
@@ -74,7 +74,7 @@ public class StoreAndLoadCompetitorsTest extends AbstractMongoDBTest {
|
||||
|
||||
private void dropCompetitorCollection() {
|
||||
DB db = getMongoService().getDB();
|
||||
DBCollection competitorCollection = db.getCollection(CollectionNames.COMPETITORS.name());
|
||||
DBCollection competitorCollection = db.getCollection(CollectionNames.COMPETITORS_BAK.name());
|
||||
competitorCollection.setWriteConcern(WriteConcern.SAFE); // ensure that the drop() has happened
|
||||
competitorCollection.drop();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user