LeagueStats/server/database/migrations/1572635649974_detailed_match_schema.js

19 lines
351 B
JavaScript
Raw Normal View History

'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