refactor: add working mongo migrations when ReplicaSet is on

This commit is contained in:
Valentin Kaelin 2020-10-16 22:17:46 +02:00
parent 210a47f62d
commit 2b2f46d71c
3 changed files with 3 additions and 3 deletions

View file

@ -2,7 +2,7 @@ import BaseMigration from '@ioc:Mongodb/Migration'
export default class MatchMigration extends BaseMigration {
public up (): void {
// this.createCollection('matches')
this.createCollection('matches')
this.createIndex('matches', 'gameId')
this.createIndex('matches', 'summoner_puuid')
}

View file

@ -2,7 +2,7 @@ import BaseMigration from '@ioc:Mongodb/Migration'
export default class SummonerMigration extends BaseMigration {
public up (): void {
// this.createCollection('summoners')
this.createCollection('summoners')
this.createIndex('summoners', 'puuid')
}
}

View file

@ -2,7 +2,7 @@ import BaseMigration from '@ioc:Mongodb/Migration'
export default class DetailedMatchMigration extends BaseMigration {
public up (): void {
// this.createCollection('detailed_matches')
this.createCollection('detailed_matches')
this.createIndex('detailed_matches', 'gameId')
}
}