Completed
Branch master (d19b6f)
by Jonathan
08:09
created
database/migrations/2018_04_15_000014_create_fields_table.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create($this->tablePrefix . 'fields', function (Blueprint $table) {
16
+        Schema::create($this->tablePrefix.'fields', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->unsignedInteger('module_id')->comment('Decrease queries');
19 19
             $table->unsignedInteger('block_id');
@@ -26,18 +26,18 @@  discard block
 block discarded – undo
26 26
 
27 27
             // Foreign keys
28 28
             $table->foreign('module_id')
29
-                ->references('id')->on($this->tablePrefix . 'modules')
29
+                ->references('id')->on($this->tablePrefix.'modules')
30 30
                 ->onDelete('cascade');
31 31
 
32 32
             $table->foreign('block_id')
33
-                    ->references('id')->on($this->tablePrefix . 'blocks')
33
+                    ->references('id')->on($this->tablePrefix.'blocks')
34 34
                     ->onDelete('cascade');
35 35
 
36 36
             $table->foreign('uitype_id')
37
-                    ->references('id')->on($this->tablePrefix . 'uitypes');
37
+                    ->references('id')->on($this->tablePrefix.'uitypes');
38 38
 
39 39
             $table->foreign('displaytype_id')
40
-                    ->references('id')->on($this->tablePrefix . 'displaytypes');
40
+                    ->references('id')->on($this->tablePrefix.'displaytypes');
41 41
         });
42 42
     }
43 43
 
@@ -48,6 +48,6 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public function down()
50 50
     {
51
-        Schema::dropIfExists($this->tablePrefix . 'fields');
51
+        Schema::dropIfExists($this->tablePrefix.'fields');
52 52
     }
53 53
 }
Please login to merge, or discard this patch.
database/migrations/2018_04_15_000006_create_profiles_roles_table.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create($this->tablePrefix . 'profiles_roles', function (Blueprint $table) {
16
+        Schema::create($this->tablePrefix.'profiles_roles', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->unsignedInteger('profile_id');
19 19
             $table->unsignedInteger('role_id');
@@ -21,15 +21,15 @@  discard block
 block discarded – undo
21 21
 
22 22
             // Foreign keys
23 23
             $table->foreign('profile_id')
24
-                    ->references('id')->on($this->tablePrefix . 'profiles')
24
+                    ->references('id')->on($this->tablePrefix.'profiles')
25 25
                     ->onDelete('cascade');
26 26
 
27 27
             $table->foreign('role_id')
28
-                    ->references('id')->on($this->tablePrefix . 'roles')
28
+                    ->references('id')->on($this->tablePrefix.'roles')
29 29
                     ->onDelete('cascade');
30 30
 
31 31
             // Unique keys
32
-            $table->unique(['profile_id', 'role_id']);
32
+            $table->unique([ 'profile_id', 'role_id' ]);
33 33
         });
34 34
     }
35 35
 
@@ -40,6 +40,6 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function down()
42 42
     {
43
-        Schema::dropIfExists($this->tablePrefix . 'profiles_roles');
43
+        Schema::dropIfExists($this->tablePrefix.'profiles_roles');
44 44
     }
45 45
 }
Please login to merge, or discard this patch.
database/migrations/2018_04_15_000024_create_links_table.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
      */
17 17
     public function up()
18 18
     {
19
-        Schema::create($this->tablePrefix . 'links', function (Blueprint $table) {
19
+        Schema::create($this->tablePrefix.'links', function(Blueprint $table) {
20 20
             $table->increments('id');
21 21
             $table->unsignedInteger('module_id');
22 22
             $table->string('label');
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
             // Foreign keys
31 31
             $table->foreign('module_id')
32
-                    ->references('id')->on($this->tablePrefix . 'modules')
32
+                    ->references('id')->on($this->tablePrefix.'modules')
33 33
                     ->onDelete('cascade');
34 34
         });
35 35
     }
@@ -41,6 +41,6 @@  discard block
 block discarded – undo
41 41
      */
42 42
     public function down()
43 43
     {
44
-        Schema::dropIfExists($this->tablePrefix . 'links');
44
+        Schema::dropIfExists($this->tablePrefix.'links');
45 45
     }
46 46
 }
Please login to merge, or discard this patch.
database/migrations/2018_04_15_000002_create_modules_table.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create($this->tablePrefix . 'modules', function (Blueprint $table) {
16
+        Schema::create($this->tablePrefix.'modules', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->string('name');
19 19
             $table->string('icon')->nullable();
@@ -30,6 +30,6 @@  discard block
 block discarded – undo
30 30
      */
31 31
     public function down()
32 32
     {
33
-        Schema::dropIfExists($this->tablePrefix . 'modules');
33
+        Schema::dropIfExists($this->tablePrefix.'modules');
34 34
     }
35 35
 }
Please login to merge, or discard this patch.
database/migrations/2018_04_15_000019_create_role_structure.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         $module->name = 'role';
38 38
         $module->icon = 'lock';
39 39
         $module->model_class = 'Uccello\Core\Models\Role';
40
-        $module->data = ["package" => "uccello/uccello", "admin" => true, "mandatory" => true];
40
+        $module->data = [ "package" => "uccello/uccello", "admin" => true, "mandatory" => true ];
41 41
         $module->save();
42 42
 
43 43
         return $module;
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         $field->name = 'name';
68 68
         $field->uitype_id = uitype('text')->id;
69 69
         $field->displaytype_id = displaytype('everywhere')->id;
70
-        $field->data = ['rules' => 'required'];
70
+        $field->data = [ 'rules' => 'required' ];
71 71
         $field->sequence = 0;
72 72
         $field->block_id = $block->id;
73 73
         $field->module_id = $module->id;
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         $field->name = 'parent';
79 79
         $field->uitype_id = uitype('entity')->id;
80 80
         $field->displaytype_id = displaytype('everywhere')->id;
81
-        $field->data = ['module' => 'role', 'field' => 'name'];
81
+        $field->data = [ 'module' => 'role', 'field' => 'name' ];
82 82
         $field->sequence = 1;
83 83
         $field->block_id = $block->id;
84 84
         $field->module_id = $module->id;
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         $field->name = 'description';
90 90
         $field->uitype_id = uitype('textarea')->id;
91 91
         $field->displaytype_id = displaytype('everywhere')->id;
92
-        $field->data = ['large' => true];
92
+        $field->data = [ 'large' => true ];
93 93
         $field->sequence = 2;
94 94
         $field->block_id = $block->id;
95 95
         $field->module_id = $module->id;
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
         $filter->user_id = null;
105 105
         $filter->name = 'filter.all';
106 106
         $filter->type = 'list';
107
-        $filter->columns = ['id', 'name', 'description', 'parent', 'created_at', 'updated_at'];
107
+        $filter->columns = [ 'id', 'name', 'description', 'parent', 'created_at', 'updated_at' ];
108 108
         $filter->conditions = null;
109 109
         $filter->order_by = null;
110 110
         $filter->is_default = true;
Please login to merge, or discard this patch.
database/migrations/2018_04_15_000016_create_user_structure.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         $module->name = 'user';
38 38
         $module->icon = 'person';
39 39
         $module->model_class = 'Uccello\Core\Models\User';
40
-        $module->data = ["package" => "uccello/uccello", "admin" => true, "mandatory" => true];
40
+        $module->data = [ "package" => "uccello/uccello", "admin" => true, "mandatory" => true ];
41 41
         $module->save();
42 42
 
43 43
         return $module;
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         $block = new Block();
58 58
         $block->label = 'block.auth';
59 59
         $block->icon = 'lock';
60
-        $block->data = ['description' => 'block.auth.description'];
60
+        $block->data = [ 'description' => 'block.auth.description' ];
61 61
         $block->sequence = 0;
62 62
         $block->tab_id = $tab->id;
63 63
         $block->module_id = $module->id;
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         $field->name = 'username';
69 69
         $field->uitype_id = uitype('text')->id;
70 70
         $field->displaytype_id = displaytype('everywhere')->id;
71
-        $field->data = ['rules' => 'required|regex:/^[a-zA-Z0-9.-_]+$/|unique:users,username,%id%'];
71
+        $field->data = [ 'rules' => 'required|regex:/^[a-zA-Z0-9.-_]+$/|unique:users,username,%id%' ];
72 72
         $field->sequence = 0;
73 73
         $field->block_id = $block->id;
74 74
         $field->module_id = $module->id;
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         $field->name = 'last_name';
91 91
         $field->uitype_id = uitype('text')->id;
92 92
         $field->displaytype_id = displaytype('everywhere')->id;
93
-        $field->data = ['rules' => 'required'];
93
+        $field->data = [ 'rules' => 'required' ];
94 94
         $field->sequence = 2;
95 95
         $field->block_id = $block->id;
96 96
         $field->module_id = $module->id;
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         $field->name = 'is_admin';
102 102
         $field->uitype_id = uitype('boolean')->id;
103 103
         $field->displaytype_id = displaytype('everywhere')->id;
104
-        $field->data = ['module' => 'domain', 'field' => 'name'];
104
+        $field->data = [ 'module' => 'domain', 'field' => 'name' ];
105 105
         $field->sequence = 3;
106 106
         $field->block_id = $block->id;
107 107
         $field->module_id = $module->id;
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         $field->name = 'password';
113 113
         $field->uitype_id = uitype('password')->id;
114 114
         $field->displaytype_id = displaytype('create')->id;
115
-        $field->data = ['rules' => 'required|min:6', 'repeated' => true];
115
+        $field->data = [ 'rules' => 'required|min:6', 'repeated' => true ];
116 116
         $field->sequence = 4;
117 117
         $field->block_id = $block->id;
118 118
         $field->module_id = $module->id;
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
         $field->name = 'email';
133 133
         $field->uitype_id = uitype('email')->id;
134 134
         $field->displaytype_id = displaytype('everywhere')->id;
135
-        $field->data = ['rules' => 'required|email|unique:users,email,%id%'];
135
+        $field->data = [ 'rules' => 'required|email|unique:users,email,%id%' ];
136 136
         $field->sequence = 0;
137 137
         $field->block_id = $block->id;
138 138
         $field->module_id = $module->id;
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
         $filter->user_id = null;
158 158
         $filter->name = 'filter.all';
159 159
         $filter->type = 'list';
160
-        $filter->columns = ['id', 'username', 'first_name', 'last_name', 'email', 'created_at', 'updated_at'];
160
+        $filter->columns = [ 'id', 'username', 'first_name', 'last_name', 'email', 'created_at', 'updated_at' ];
161 161
         $filter->conditions = null;
162 162
         $filter->order_by = null;
163 163
         $filter->is_default = true;
Please login to merge, or discard this patch.
database/migrations/2018_04_15_000003_create_domains_modules_table.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create($this->tablePrefix . 'domains_modules', function (Blueprint $table) {
16
+        Schema::create($this->tablePrefix.'domains_modules', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->unsignedInteger('domain_id');
19 19
             $table->unsignedInteger('module_id');
@@ -21,15 +21,15 @@  discard block
 block discarded – undo
21 21
 
22 22
             // Foreign keys
23 23
             $table->foreign('domain_id')
24
-                    ->references('id')->on($this->tablePrefix . 'domains')
24
+                    ->references('id')->on($this->tablePrefix.'domains')
25 25
                     ->onDelete('cascade');
26 26
 
27 27
             $table->foreign('module_id')
28
-                    ->references('id')->on($this->tablePrefix . 'modules')
28
+                    ->references('id')->on($this->tablePrefix.'modules')
29 29
                     ->onDelete('cascade');
30 30
 
31 31
             // Unique keys
32
-            $table->unique(['domain_id', 'module_id']);
32
+            $table->unique([ 'domain_id', 'module_id' ]);
33 33
         });
34 34
     }
35 35
 
@@ -40,6 +40,6 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function down()
42 42
     {
43
-        Schema::dropIfExists($this->tablePrefix . 'domains_modules');
43
+        Schema::dropIfExists($this->tablePrefix.'domains_modules');
44 44
     }
45 45
 }
Please login to merge, or discard this patch.
database/migrations/2018_04_15_000018_create_profile_structure.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         $module->name = 'profile';
38 38
         $module->icon = 'lock';
39 39
         $module->model_class = 'Uccello\Core\Models\Profile';
40
-        $module->data = ["package" => "uccello/uccello", "admin" => true, "mandatory" => true];
40
+        $module->data = [ "package" => "uccello/uccello", "admin" => true, "mandatory" => true ];
41 41
         $module->save();
42 42
 
43 43
         return $module;
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         $field->name = 'name';
68 68
         $field->uitype_id = uitype('text')->id;
69 69
         $field->displaytype_id = displaytype('everywhere')->id;
70
-        $field->data = ['rules' => 'required'];
70
+        $field->data = [ 'rules' => 'required' ];
71 71
         $field->sequence = 0;
72 72
         $field->block_id = $block->id;
73 73
         $field->module_id = $module->id;
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         $field->name = 'description';
79 79
         $field->uitype_id = uitype('textarea')->id;
80 80
         $field->displaytype_id = displaytype('everywhere')->id;
81
-        $field->data = ['large' => true];
81
+        $field->data = [ 'large' => true ];
82 82
         $field->sequence = 1;
83 83
         $field->block_id = $block->id;
84 84
         $field->module_id = $module->id;
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
         $filter->user_id = null;
94 94
         $filter->name = 'filter.all';
95 95
         $filter->type = 'list';
96
-        $filter->columns = ['id', 'name', 'description', 'created_at', 'updated_at'];
96
+        $filter->columns = [ 'id', 'name', 'description', 'created_at', 'updated_at' ];
97 97
         $filter->conditions = null;
98 98
         $filter->order_by = null;
99 99
         $filter->is_default = true;
Please login to merge, or discard this patch.
database/migrations/2018_04_15_000025_create_settings_module.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     public function down()
27 27
     {
28 28
         // Drop table
29
-        Schema::dropIfExists($this->tablePrefix . 'settings');
29
+        Schema::dropIfExists($this->tablePrefix.'settings');
30 30
 
31 31
         // Delete module
32 32
         Module::where('name', 'settings')->forceDelete();
Please login to merge, or discard this patch.