PK

ADDRLIN : /home/questend/.trash/database/migrations/
FLL :
Current File : /home/questend/.trash/database/migrations/2018_05_28_000902_create_product_reviews_table.php

<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateProductReviewsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('product_reviews', function (Blueprint $table) {
            #$table->engine = 'InnoDB';
            $table->increments('id');
            $table->integer('product_id')->unsigned()->default(0);          
            $table->integer('user_id')->unsigned()->default(0);            
            $table->string('review_detail')->default('');         
            $table->integer('review_entity')->default(1);
            $table->string('review_entity_summary')->default('');
            $table->string('review_status')->default('N/A');		    
            $table->tinyInteger('isvisible')->unsigned(1)->comment('1:No;2:Yes');
            $table->tinyInteger('isactive')->unsigned()->default(1)->comment('0:inactive;1:active');
            $table->tinyInteger('isdelete')->unsigned()->default(1)->comment('0:isdelete;1:active');
            $table->timestamps();
            $table->softDeletes();
            $table->ipAddress('visitor');
            #ALTER TABLE `attributes` ADD INDEX(`review_entity`);
            $table->index(['user_id', 'product_id', 'review_entity']);
            /* Schema::table('product_reviews', function($table) {
                $table->foreign('product_id')->references('id')->on('products');
            }); */
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('product_reviews');
    }
}


PK 99
E-SHOP || DASHBOARD
404

Page Not Found

It looks like you found a glitch in the matrix...

← Back to Home