From 9a93be2752ec81ed1f634adbb63aef2d1c5272de Mon Sep 17 00:00:00 2001 From: Vijay A Date: Wed, 19 May 2021 11:28:09 +0530 Subject: Applied linter fixes. --- .../1612629845398_users_update_schema.js | 26 ++++++++++------------ 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'database/migrations/1612629845398_users_update_schema.js') diff --git a/database/migrations/1612629845398_users_update_schema.js b/database/migrations/1612629845398_users_update_schema.js index d07f66d..10b82aa 100644 --- a/database/migrations/1612629845398_users_update_schema.js +++ b/database/migrations/1612629845398_users_update_schema.js @@ -1,20 +1,18 @@ -'use strict' - /** @type {import('@adonisjs/lucid/src/Schema')} */ -const Schema = use('Schema') +const Schema = use('Schema'); class UsersUpdateSchema extends Schema { - up() { - this.table('users', (table) => { - table.string('lastname', 80).notNullable().default(''); - }) - } + up() { + this.table('users', (table) => { + table.string('lastname', 80).notNullable().default(''); + }); + } - down() { - this.table('users', (table) => { - table.dropColumn('lastname') - }) - } + down() { + this.table('users', (table) => { + table.dropColumn('lastname'); + }); + } } -module.exports = UsersUpdateSchema \ No newline at end of file +module.exports = UsersUpdateSchema; -- cgit v1.2.3-54-g00ecf