⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
work
/
themes
/
Mytravel
/
Database
/
Migrations
/
View File Name :
2022_03_24_035712_mytravel_custom_fields.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class MytravelCustomFields extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('bravo_tours', function (Blueprint $table) { if (!Schema::hasColumn('bravo_tours', 'date_form_to')) { $table->string('date_form_to')->nullable(); } if (!Schema::hasColumn('bravo_tours', 'min_age')) { $table->string('min_age')->nullable(); } if (!Schema::hasColumn('bravo_tours', 'pickup')) { $table->string('pickup')->nullable(); } if (!Schema::hasColumn('bravo_tours', 'wifi_available')) { $table->tinyInteger('wifi_available')->nullable(); } }); Schema::table('bravo_hotels', function (Blueprint $table) { if (!Schema::hasColumn('bravo_hotels', 'badge_tags')) { $table->text('badge_tags')->nullable(); } }); Schema::table('bravo_hotel_translations', function (Blueprint $table) { if (!Schema::hasColumn('bravo_hotel_translations', 'badge_tags')) { $table->text('badge_tags')->nullable(); } }); Schema::table('bravo_cars', function (Blueprint $table) { if (!Schema::hasColumn('bravo_cars', 'specifications')) { $table->text('specifications')->nullable(); } }); Schema::table('bravo_car_translations', function (Blueprint $table) { if (!Schema::hasColumn('bravo_car_translations', 'specifications')) { $table->text('specifications')->nullable(); } }); } /** * Reverse the migrations. * * @return void */ public function down() { // } }