mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
fix: update summoner_names length in DB
This commit is contained in:
parent
fc9a87e610
commit
f343992ee6
1 changed files with 15 additions and 0 deletions
|
|
@ -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() {}
|
||||
}
|
||||
Loading…
Reference in a new issue