From d343dbf6f900d42dc057d29b3278e0436539fab2 Mon Sep 17 00:00:00 2001 From: Yoga Pangestu Date: Wed, 4 Feb 2026 11:04:00 +0700 Subject: [PATCH] refactor(content recap): change data type title from string to text and adjust maxlength validation --- .../Monitoring/ContentRecaps/Schemas/ContentRecapForm.php | 2 +- .../2025_12_09_113331_create_content_recaps_table.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Filament/Resources/Monitoring/ContentRecaps/Schemas/ContentRecapForm.php b/app/Filament/Resources/Monitoring/ContentRecaps/Schemas/ContentRecapForm.php index ae050df..9eb1e84 100644 --- a/app/Filament/Resources/Monitoring/ContentRecaps/Schemas/ContentRecapForm.php +++ b/app/Filament/Resources/Monitoring/ContentRecaps/Schemas/ContentRecapForm.php @@ -27,7 +27,7 @@ public static function configure(Schema $schema): Schema ->autocomplete(false) ->autofocus() ->required() - ->maxLength(255), + ->maxLength(1000), TextInput::make('link') ->label('Tautan') diff --git a/database/migrations/2025_12_09_113331_create_content_recaps_table.php b/database/migrations/2025_12_09_113331_create_content_recaps_table.php index 9250c5b..bcc3dce 100644 --- a/database/migrations/2025_12_09_113331_create_content_recaps_table.php +++ b/database/migrations/2025_12_09_113331_create_content_recaps_table.php @@ -15,7 +15,7 @@ public function up(): void Schema::create('content_recaps', function (Blueprint $table) { $table->id(); $table->foreignId('classification_id')->constrained()->cascadeOnDelete(); - $table->string('title', 255); + $table->text('title'); $table->text('link', 50)->nullable(); $table->date('posting_date')->index(); $table->enum('type', ContentType::values())->default(ContentType::FOTO)->index();