mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
17 lines
519 B
TypeScript
17 lines
519 B
TypeScript
|
|
import BaseSchema from '@ioc:Adonis/Lucid/Schema'
|
||
|
|
|
||
|
|
export default class extends BaseSchema {
|
||
|
|
public async up() {
|
||
|
|
this.schema.alterTable('matches', (table) => {
|
||
|
|
table.index(['id', 'gamemode'], 'matches_combined_index1')
|
||
|
|
})
|
||
|
|
|
||
|
|
this.schema.alterTable('match_players', (table) => {
|
||
|
|
table.index(['summoner_puuid', 'remake', 'match_id'], 'match_players_combined_index1')
|
||
|
|
table.index(['match_id', 'team', 'summoner_puuid'], 'match_players_combined_index2')
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
public async down() {}
|
||
|
|
}
|