mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
refactor: add working mongo migrations when ReplicaSet is on
This commit is contained in:
parent
210a47f62d
commit
2b2f46d71c
3 changed files with 3 additions and 3 deletions
|
|
@ -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')
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue