LeagueStats/server/database/migrations/1567863677607_match_schema.js
2019-09-11 09:06:21 +02:00

18 lines
318 B
JavaScript

'use strict'
/** @type {import('@adonisjs/lucid/src/Schema')} */
const Schema = use('Schema')
class MatchSchema extends Schema {
up () {
this.create('matches', (collection) => {
collection.index('gameId', {gameId: 1})
})
}
down () {
this.drop('matches')
}
}
module.exports = MatchSchema