mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 21:07:27 +00:00
16 lines
418 B
TypeScript
16 lines
418 B
TypeScript
|
|
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() {}
|
||
|
|
}
|