File: /home/armgroup/libs/database/migrations/2021_07_19_144440_create_attribute_groups_table.php
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateAttributeGroupsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('attribute_groups', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('label')->nullable();
$table->unsignedInteger('sort_order')->nullable()->default(null);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('attribute_groups');
}
}