Updates to 03-2025
This commit is contained in:
parent
6167273a48
commit
9b54eb0512
348 changed files with 34535 additions and 5774 deletions
|
|
@ -15,12 +15,13 @@ class CreateAttributesTable extends Migration
|
|||
{
|
||||
Schema::create('attributes', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->unsignedInteger('attribute_type_id');
|
||||
|
||||
$table->unsignedInteger('parent_id')->index()->nullable();
|
||||
$table->string('name')->index();
|
||||
$table->text('trans_name')->nullable();
|
||||
$table->tinyInteger('pos')->unsigned()->nullable();
|
||||
$table->boolean('active')->default(false);
|
||||
$table->boolean('active')->default(true);
|
||||
|
||||
$table->string('slug')->unique()->index();
|
||||
|
||||
|
|
@ -30,6 +31,10 @@ class CreateAttributesTable extends Migration
|
|||
$table->foreign('parent_id')
|
||||
->references('id')
|
||||
->on('attributes');
|
||||
|
||||
$table->foreign('attribute_type_id')
|
||||
->references('id')
|
||||
->on('attribute_types');
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue