Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 52.14.7.53
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/modules/Flight/Migrations/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/book24.ng/modules/Flight/Migrations/2019_07_30_072809_create_flight_table.php
<?php

    use Illuminate\Support\Facades\Schema;
    use Illuminate\Database\Schema\Blueprint;
    use Illuminate\Database\Migrations\Migration;
    use Modules\Flight\Models\Airline;
    use Modules\Flight\Models\Airport;
    use Modules\Flight\Models\BookingPassengers;
    use Modules\Flight\Models\Flight;
    use Modules\Flight\Models\FlightSeat;
    use Modules\Flight\Models\FlightTerm;
    use Modules\Flight\Models\SeatType;

    class CreateFlightTable extends Migration
    {
        /**
         * Run the migrations.
         *
         * @return void
         */
        public function up()
        {
            $this->down();
            Schema::create(FlightTerm::getTableName(), function (Blueprint $table) {
                $table->bigIncrements('id');
                $table->integer('term_id')->nullable();
                $table->integer('target_id')->nullable();
                $table->bigInteger('create_user')->nullable();
                $table->bigInteger('update_user')->nullable();

                $table->softDeletes();
                $table->timestamps();
            });
            Schema::create(Airport::getTableName(), function (Blueprint $table) {
                $table->bigIncrements('id');
                $table->string('name')->nullable();
                $table->string('code')->unique();
                $table->string('address')->nullable();
                $table->string('country',20)->nullable();
                $table->integer('location_id')->nullable();
                $table->text('description')->nullable();
                $table->string('map_lat', 20)->nullable();
                $table->string('map_lng', 20)->nullable();
                $table->integer('map_zoom')->nullable();
                $table->bigInteger('create_user')->nullable();
                $table->bigInteger('update_user')->nullable();
                $table->string('status',30)->nullable()->default('publish');
                $table->timestamps();
            });
            Schema::create(Airline::getTableName(), function (Blueprint $table) {
                $table->bigIncrements('id');
                $table->string('name')->nullable();
                $table->integer('image_id')->nullable();
                $table->bigInteger('create_user')->nullable();
                $table->bigInteger('update_user')->nullable();
                $table->softDeletes();
                $table->timestamps();
            });
            Schema::create(SeatType::getTableName(), function (Blueprint $table) {
                $table->bigIncrements('id');
                $table->string('code')->unique();
                $table->string('name')->nullable();
                $table->bigInteger('create_user')->nullable();
                $table->bigInteger('update_user')->nullable();
                $table->softDeletes();
                $table->timestamps();
            });

            Schema::create(Flight::getTableName(), function (Blueprint $blueprint) {
                $blueprint->engine = 'InnoDB';
                $blueprint->bigIncrements('id');
                $blueprint->string('title')->nullable();
                $blueprint->string('code')->nullable();
                $blueprint->decimal('review_score',2,1)->nullable();
                $blueprint->dateTime('departure_time')->nullable();
                $blueprint->dateTime('arrival_time')->nullable();
                $blueprint->float('duration')->nullable();
                $blueprint->decimal('min_price', 12, 2)->nullable();
                $blueprint->integer('airport_to')->nullable();
                $blueprint->integer('airport_from')->nullable();
                $blueprint->integer('airline_id')->nullable();
                $blueprint->string('status', 50)->nullable();

                $blueprint->bigInteger('create_user')->nullable();
                $blueprint->bigInteger('update_user')->nullable();
                $blueprint->timestamps();
                $blueprint->softDeletes();
            });
            Schema::create(FlightSeat::getTableName(), function (Blueprint $blueprint) {
                $blueprint->engine = 'InnoDB';
                $blueprint->bigIncrements('id');
                $blueprint->decimal('price', 12, 2)->nullable();
                $blueprint->integer('max_passengers')->nullable();
                $blueprint->integer('flight_id')->nullable();
                $blueprint->string('seat_type')->nullable();
                $blueprint->string('person')->nullable();
                $blueprint->integer('baggage_check_in')->nullable();
                $blueprint->integer('baggage_cabin')->nullable();


                $blueprint->bigInteger('create_user')->nullable();
                $blueprint->bigInteger('update_user')->nullable();
                $blueprint->timestamps();
                $blueprint->softDeletes();
            });
            Schema::create(BookingPassengers::getTableName(), function (Blueprint $blueprint) {
                $blueprint->engine = 'InnoDB';

                $blueprint->bigIncrements('id');
                $blueprint->integer('flight_id')->nullable();
                $blueprint->integer('flight_seat_id')->nullable();
                $blueprint->integer('booking_id')->nullable();
                $blueprint->string('seat_type')->nullable();
                $blueprint->string('email')->nullable();
                $blueprint->string('first_name')->nullable();
                $blueprint->string('last_name')->nullable();
                $blueprint->string('phone')->nullable();
                $blueprint->dateTime('dob')->nullable();
                $blueprint->decimal('price', 12, 2)->nullable();
                $blueprint->string('id_card')->nullable();


                $blueprint->bigInteger('create_user')->nullable();
                $blueprint->bigInteger('update_user')->nullable();
                $blueprint->timestamps();
                $blueprint->softDeletes();
            });
        }

        /**
         * Reverse the migrations.
         *
         * @return void
         */
        public function down()
        {
            Schema::dropIfExists(FlightTerm::getTableName());
            Schema::dropIfExists(Airport::getTableName());
            Schema::dropIfExists(Airline::getTableName());
            Schema::dropIfExists(SeatType::getTableName());
            Schema::dropIfExists(Flight::getTableName());
            Schema::dropIfExists(FlightSeat::getTableName());
            Schema::dropIfExists(BookingPassengers::getTableName());
        }
    }

Youez - 2016 - github.com/yon3zu
LinuXploit