Commit 41396dbe authored by TTS Tran Viet Anh's avatar TTS Tran Viet Anh

add nullable parent_id

parent 540ee1db
......@@ -18,7 +18,7 @@ public function up()
$table->id();
$table->string('name');
$table->string('image');
$table->unsignedInteger('parent_id');
$table->unsignedInteger('parent_id')->nullable();
$table->unsignedTinyInteger('status')->default(ProductCategory::STATUS_ENABLE);
$table->unsignedInteger('ordering');
$table->softDeletes();
......
......@@ -18,7 +18,7 @@ public function up()
$table->id();
$table->string('name');
$table->string('image');
$table->unsignedInteger('parent_id');
$table->unsignedInteger('parent_id')->nullable();
$table->unsignedTinyInteger('status')->default(PostCategory::STATUS_ENABLE);
$table->unsignedInteger('ordering');
$table->softDeletes();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment