feat: Allow longer titles for reports by changing the database column to text and removing the form input length limit.

This commit is contained in:
Yoga Pangestu 2026-03-13 13:30:05 +07:00
parent cb41a0b5d3
commit 8e68c0b225
3 changed files with 2 additions and 3 deletions

View File

@ -203,7 +203,7 @@ public function handle()
['id' => $legacy->id],
[
'media_task_assignment_id' => $assignment->id,
'title' => Str::limit($legacy->title, 200),
'title' => $legacy->title,
'publication_date' => $legacy->broadcast ?? $legacy->created_at ?? now(),
'link' => Str::limit($legacy->link, 50),
'description' => 'Legacy Proof: '.($legacy->proof ?? '-'),

View File

@ -73,7 +73,6 @@ public function form(Schema $schema): Schema
TextInput::make('title')
->placeholder('Dirgahayu Purwakarta')
->required()
->maxLength(200)
->autocomplete(false)
->autofocus(),

View File

@ -15,7 +15,7 @@ public function up(): void
Schema::create('reports', function (Blueprint $table) {
$table->id();
$table->foreignId('media_task_assignment_id')->constrained('media_task_assignment')->cascadeOnDelete();
$table->string('title', 200);
$table->text('title');
$table->date('publication_date')->index();
$table->string('link');
$table->text('description');