Updates to 03-2025

This commit is contained in:
Kevin Adametz 2025-04-01 10:39:21 +02:00
parent 6167273a48
commit 9b54eb0512
348 changed files with 34535 additions and 5774 deletions

View file

@ -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');
});
}