mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
18 lines
351 B
JavaScript
18 lines
351 B
JavaScript
'use strict'
|
|
|
|
/** @type {import('@adonisjs/lucid/src/Schema')} */
|
|
const Schema = use('Schema')
|
|
|
|
class DetailedMatchSchema extends Schema {
|
|
up () {
|
|
this.create('detailed_matches', (collection) => {
|
|
collection.index('gameId', {gameId: 1})
|
|
})
|
|
}
|
|
|
|
down () {
|
|
this.drop('detailed_matches')
|
|
}
|
|
}
|
|
|
|
module.exports = DetailedMatchSchema
|