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

9 lines
270 B
TypeScript

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