LeagueStats/server/mongodb/migrations/1601816721286_match.ts

10 lines
270 B
TypeScript
Raw Permalink Normal View History

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