Server IP : 66.29.132.124 / Your IP : 3.142.255.103 Web Server : LiteSpeed System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : wavevlvu ( 1524) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/wavevlvu/book24.ng/database/migrations/ |
Upload File : |
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class UpdateFrom190To200 extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('bravo_attrs', function (Blueprint $table) { if (!Schema::hasColumn('bravo_attrs', 'hide_in_filter_search')) { $table->tinyInteger('hide_in_filter_search')->nullable(); } }); Schema::table('core_pages', function (Blueprint $table) { if (!Schema::hasColumn('core_pages', 'header_style')) { $table->string('header_style',255)->nullable(); } if (!Schema::hasColumn('core_pages', 'custom_logo')) { $table->integer('custom_logo')->nullable(); } }); Schema::table('bravo_events', function (Blueprint $table) { if (!Schema::hasColumn('bravo_events', 'end_time')) { $table->string('end_time',255)->nullable(); } if (!Schema::hasColumn('bravo_events', 'duration_unit')) { $table->string('duration_unit',255)->nullable(); } }); if (!Schema::hasTable("bravo_booking_time_slots")) { Schema::create("bravo_booking_time_slots", function (Blueprint $table) { $table->bigIncrements('id'); $table->integer('booking_id')->nullable(); $table->bigInteger('object_id')->nullable(); $table->string('object_model', 40)->nullable(); $table->time('start_time')->nullable(); $table->time('end_time')->nullable(); $table->float('duration',255)->nullable(); $table->string('duration_unit',255)->nullable(); $table->integer('create_user')->nullable(); $table->integer('update_user')->nullable(); $table->timestamps(); }); } Schema::table('bravo_hotel_rooms', function (Blueprint $table) { if (!Schema::hasColumn('bravo_hotel_rooms', 'min_day_stays')) { $table->integer('min_day_stays')->nullable(); } }); Schema::table('bravo_attrs', function (Blueprint $table) { if (!Schema::hasColumn('bravo_attrs', 'position')) { $table->smallInteger('position')->nullable(); } }); } /** * Reverse the migrations. * * @return void */ public function down() { } }