LeagueStats/server-v2/database/migrations/1631392817716_summoner_matchlist.ts

18 lines
454 B
TypeScript
Raw Normal View History

2021-09-12 13:16:08 +00:00
import BaseSchema from '@ioc:Adonis/Lucid/Schema'
export default class SummonerMatchLists extends BaseSchema {
protected tableName = 'summoner_matchlist'
public async up() {
this.schema.createTable(this.tableName, (table) => {
table.increments('id')
table.string('summoner_puuid', 78).notNullable()
table.string('match_id', 15).notNullable()
})
}
public async down() {
this.schema.dropTable(this.tableName)
}
}