aboutsummaryrefslogtreecommitdiffstats
path: root/database/migrations/1612629845398_users_update_schema.ts
diff options
context:
space:
mode:
Diffstat (limited to 'database/migrations/1612629845398_users_update_schema.ts')
-rw-r--r--database/migrations/1612629845398_users_update_schema.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/database/migrations/1612629845398_users_update_schema.ts b/database/migrations/1612629845398_users_update_schema.ts
index 8831ea4..76dc816 100644
--- a/database/migrations/1612629845398_users_update_schema.ts
+++ b/database/migrations/1612629845398_users_update_schema.ts
@@ -1,15 +1,15 @@
1import BaseSchema from '@ioc:Adonis/Lucid/Schema'; 1import { BaseSchema } from '@adonisjs/lucid/schema'
2 2
3export default class extends BaseSchema { 3export default class extends BaseSchema {
4 public async up(): Promise<void> { 4 public async up(): Promise<void> {
5 this.schema.alterTable('users', table => { 5 this.schema.alterTable('users', (table) => {
6 table.string('lastname', 80).notNullable().defaultTo(''); 6 table.string('lastname', 80).notNullable().defaultTo('')
7 }); 7 })
8 } 8 }
9 9
10 public async down(): Promise<void> { 10 public async down(): Promise<void> {
11 this.schema.alterTable('users', table => { 11 this.schema.alterTable('users', (table) => {
12 table.dropColumn('lastname'); 12 table.dropColumn('lastname')
13 }); 13 })
14 } 14 }
15} 15}