import BaseSchema from '@ioc:Adonis/Lucid/Schema'; export default class extends BaseSchema { public async up(): Promise { this.schema.alterTable('users', table => { table.string('lastname', 80).notNullable().defaultTo(''); }); } public async down(): Promise { this.schema.alterTable('users', table => { table.dropColumn('lastname'); }); } }