diff options
author | Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com> | 2021-07-05 19:47:47 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-05 19:47:47 +0530 |
commit | 96938cd6dd10e77e96d4ab34b6f64a349254d98d (patch) | |
tree | 68c9f814980e5cab5614d2c2816330a406749899 /database | |
parent | Change main license holder to Ferdi and remove one existing in docker directory (diff) | |
parent | Bump set-getter from 0.1.0 to 0.1.1 (diff) | |
download | ferdium-server-96938cd6dd10e77e96d4ab34b6f64a349254d98d.tar.gz ferdium-server-96938cd6dd10e77e96d4ab34b6f64a349254d98d.tar.zst ferdium-server-96938cd6dd10e77e96d4ab34b6f64a349254d98d.zip |
Merge branch 'master' into master
Diffstat (limited to 'database')
-rw-r--r-- | database/migrations/1612629845398_users_update_schema.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/database/migrations/1612629845398_users_update_schema.js b/database/migrations/1612629845398_users_update_schema.js new file mode 100644 index 0000000..10b82aa --- /dev/null +++ b/database/migrations/1612629845398_users_update_schema.js | |||
@@ -0,0 +1,18 @@ | |||
1 | /** @type {import('@adonisjs/lucid/src/Schema')} */ | ||
2 | const Schema = use('Schema'); | ||
3 | |||
4 | class UsersUpdateSchema extends Schema { | ||
5 | up() { | ||
6 | this.table('users', (table) => { | ||
7 | table.string('lastname', 80).notNullable().default(''); | ||
8 | }); | ||
9 | } | ||
10 | |||
11 | down() { | ||
12 | this.table('users', (table) => { | ||
13 | table.dropColumn('lastname'); | ||
14 | }); | ||
15 | } | ||
16 | } | ||
17 | |||
18 | module.exports = UsersUpdateSchema; | ||