@@ -8,20 +8,20 @@ |
||
8 | 8 | { |
9 | 9 | public function up() |
10 | 10 | { |
11 | - $this->table('admin_users', ['id' => false, 'primary_key' => 'admin_user_uuid']) |
|
12 | - ->addColumn('admin_user_uuid', 'binary', ['limit' => 16]) |
|
11 | + $this->table('admin_users', [ 'id' => false, 'primary_key' => 'admin_user_uuid' ]) |
|
12 | + ->addColumn('admin_user_uuid', 'binary', [ 'limit' => 16 ]) |
|
13 | 13 | ->addColumn('admin_user_id', 'text') |
14 | 14 | ->addColumn('first_name', 'text') |
15 | 15 | ->addColumn('last_name', 'text') |
16 | - ->addColumn('introduction', 'text', ['null' => true]) |
|
17 | - ->addColumn('email', 'string', ['limit' => 128]) |
|
18 | - ->addColumn('password', 'char', ['limit' => 60]) |
|
19 | - ->addColumn('status', 'integer', ['default' => 0])// 0 => not active, 1 = active |
|
20 | - ->addColumn('face_img', 'text', ['null' => true]) |
|
21 | - ->addColumn('profile_img', 'text', ['null' => true]) |
|
22 | - ->addColumn('created_at', 'datetime', ['default' => 'CURRENT_TIMESTAMP']) |
|
23 | - ->addColumn('last_login', 'datetime', ['null' => true]) |
|
24 | - ->addIndex(['email'], ['name' => 'email_INDEX']) |
|
16 | + ->addColumn('introduction', 'text', [ 'null' => true ]) |
|
17 | + ->addColumn('email', 'string', [ 'limit' => 128 ]) |
|
18 | + ->addColumn('password', 'char', [ 'limit' => 60 ]) |
|
19 | + ->addColumn('status', 'integer', [ 'default' => 0 ])// 0 => not active, 1 = active |
|
20 | + ->addColumn('face_img', 'text', [ 'null' => true ]) |
|
21 | + ->addColumn('profile_img', 'text', [ 'null' => true ]) |
|
22 | + ->addColumn('created_at', 'datetime', [ 'default' => 'CURRENT_TIMESTAMP' ]) |
|
23 | + ->addColumn('last_login', 'datetime', [ 'null' => true ]) |
|
24 | + ->addIndex([ 'email' ], [ 'name' => 'email_INDEX' ]) |
|
25 | 25 | ->create(); |
26 | 26 | |
27 | 27 |