feat: section category and icon fields with Tabler IconPicker component

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-10 11:15:31 +02:00
parent 10bd55b8ae
commit 5dbe7a254e

View File

@@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('festival_sections', function (Blueprint $table) {
$table->string('category', 50)->nullable()->after('name');
$table->string('icon', 50)->nullable()->after('category');
$table->index(['event_id', 'category']);
});
}
public function down(): void
{
Schema::table('festival_sections', function (Blueprint $table) {
$table->dropIndex(['event_id', 'category']);
$table->dropColumn(['category', 'icon']);
});
}
};