diff options
Diffstat (limited to 'database/migrations/1612629845398_users_update_schema.ts')
-rw-r--r-- | database/migrations/1612629845398_users_update_schema.ts | 14 |
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 76dc816..2ee4ee4 100644 --- a/database/migrations/1612629845398_users_update_schema.ts +++ b/database/migrations/1612629845398_users_update_schema.ts | |||
@@ -1,15 +1,15 @@ | |||
1 | import { BaseSchema } from '@adonisjs/lucid/schema' | 1 | import { BaseSchema } from '@adonisjs/lucid/schema'; |
2 | 2 | ||
3 | export default class extends BaseSchema { | 3 | export 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 | } |