fix: update summoner_names length in DB

This commit is contained in:
Valentin Kaelin 2021-09-22 15:59:41 +02:00
parent fc9a87e610
commit f343992ee6

View file

@ -0,0 +1,15 @@
import BaseSchema from '@ioc:Adonis/Lucid/Schema'
export default class UpdateSummonerNameLengths extends BaseSchema {
public async up() {
this.schema.alterTable('match_players', (table) => {
table.string('summoner_name', 30).alter().notNullable()
})
this.schema.alterTable('summoner_names', (table) => {
table.string('name', 30).alter().notNullable()
})
}
public async down() {}
}