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:
@@ -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']);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user