![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/ts.corals.io/corals-api/Corals/modules/Utility/update-batches/ |
<?php use Carbon\Carbon; use Illuminate\Database\Schema\Blueprint; if (!\Schema::hasColumn('utility_locations', 'type')) { \Schema::table('utility_locations', function (Blueprint $table) { $table->string('type')->nullable()->index()->after('module'); $table->unsignedInteger('parent_id')->nullable()->default(0)->after('type'); }); \DB::table('settings')->insert([ [ 'code' => 'utility_location_types', 'type' => 'SELECT', 'label' => 'Location Types', 'value' => '{"city":"City","state":"State","country":"Country"}', 'editable' => 1, 'hidden' => 0, 'category' => 'Utilities', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), ], ]); }