Closed sinamiandashti closed 6 years ago
fixed in https://github.com/sunel/eav/pull/12
in your products
table what is the default value for created_at
& updated_at
, is it set to NULL
or ''
class CreateProductEntityMainTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('products', function (Blueprint $table) {
$table->increments('id');
$table->integer('entity_id')->unsigned();
$table->integer('attribute_set_id')->unsigned();
$table->string('slug');
$table->smallInteger('order');
$table->integer('visit_count');
// ->onDelete('set null');
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('products');
}
}
@sinamiandashti Thanks for the pull request, i am working on the test cases and few more changes are being added regarding the flat table.
@sinamiandashti
Need some suggestion,
What is preferred way to letting know that flat is being activated.
1) Value is in DB. 2) Through Configuration.
Through Configuration
can u please merge my request , we are heavily working with your package and need this fix
@sinamiandashti
Will merge for now, remember there is no tagged release.
NOTE: Changes are made rapidly in master branch, working on a stable relaease
thanks
should we git ignore this folder ? database/migrations/eav/ @sunel
Yes
@sinamiandashti
What version of mysql are you using.
Maria DB 10.2
hello
when i try to compile flat table using this command :
php artisan eav:compile:entity product
Following error happens :