diff options
author | 2024-02-10 18:19:14 -0700 | |
---|---|---|
committer | 2024-02-13 06:59:44 +0530 | |
commit | 7584d2d7a7110aef0331ebfa178b2295842c59fa (patch) | |
tree | 900cd71237e6231b57936fcce77ff229cd459041 /database/migrations/1612629845398_users_update_schema.ts | |
parent | upgrade recipes submodule (diff) | |
download | ferdium-server-7584d2d7a7110aef0331ebfa178b2295842c59fa.tar.gz ferdium-server-7584d2d7a7110aef0331ebfa178b2295842c59fa.tar.zst ferdium-server-7584d2d7a7110aef0331ebfa178b2295842c59fa.zip |
refactor: project maintenance
- work in progress
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 8831ea4..76dc816 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 '@ioc:Adonis/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 | } |