Completed
Push — master ( 02eec8...69e648 )
by Aleksandar
15:47
created
data/phinx/migrations/20160908142829_admin_users.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -8,20 +8,20 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.