LeagueStats/server/mongodb/migrations/1601819837856_detailed_match.ts

9 lines
246 B
TypeScript
Raw Permalink Normal View History

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