Completed
Push — dev5 ( f3ede3...502bc5 )
by Ron
08:16
created
database/migrations/2019_10_19_175205_updates_for_version_5_0.php 1 patch
Braces   +6 added lines, -11 removed lines patch added patch discarded remove patch
@@ -79,8 +79,7 @@  discard block
 block discarded – undo
79 79
         //  Add the 'documentation' column in the tech_tips table
80 80
         if(!Schema::hasColumn('tech_tips', 'documentation'))
81 81
         {
82
-            Schema::table('tech_tips', function(Blueprint $table) 
83
-            {
82
+            Schema::table('tech_tips', function(Blueprint $table) {
84 83
                 $table->boolean('documentation')->default(0)->nullable()->after('public');
85 84
             });
86 85
             
@@ -113,8 +112,7 @@  discard block
 block discarded – undo
113 112
         //  Add the 'is_installer' column in the users table
114 113
         if(!Schema::hasColumn('users', 'is_installer'))
115 114
         {
116
-            Schema::table('users', function(Blueprint $table)
117
-            {
115
+            Schema::table('users', function(Blueprint $table) {
118 116
                 $table->boolean('is_installer')->default(0)->after('active');
119 117
             });
120 118
             
@@ -198,8 +196,7 @@  discard block
 block discarded – undo
198 196
                         ]);
199 197
                     }
200 198
                 }
201
-                Schema::table('user_role', function(Blueprint $table)
202
-                {
199
+                Schema::table('user_role', function(Blueprint $table) {
203 200
                     $table->dropForeign(['user_id']);
204 201
                     $table->dropForeign(['role_id']);
205 202
                 });
@@ -211,8 +208,7 @@  discard block
 block discarded – undo
211 208
         //  Remove the system_files and system_file_types table
212 209
         if(Schema::hasTable('system_files'))
213 210
         {
214
-            Schema::table('system_files', function(Blueprint $table)
215
-            {
211
+            Schema::table('system_files', function(Blueprint $table) {
216 212
                 $table->dropForeign(['sys_id']);
217 213
                 $table->dropForeign(['type_id']);
218 214
                 $table->dropForeign(['file_id']);
@@ -230,7 +226,7 @@  discard block
 block discarded – undo
230 226
      * @return void
231 227
      */
232 228
     public function down()
233
-    {   
229
+    {
234 230
         if(Schema::hasColumn('file_links', 'cust_id'))
235 231
         {
236 232
             Schema::table('file_links', function(Blueprint $table) {
@@ -248,8 +244,7 @@  discard block
 block discarded – undo
248 244
         
249 245
         if(Schema::hasColumn('tech_tips', 'documentation'))
250 246
         {
251
-            Schema::table('tech_tips', function(Blueprint $table) 
252
-            {
247
+            Schema::table('tech_tips', function(Blueprint $table) {
253 248
                 $table->dropColumn('documentation');
254 249
             });
255 250
         }
Please login to merge, or discard this patch.