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:
parent
cb41a0b5d3
commit
8e68c0b225
@ -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 ?? '-'),
|
||||
|
||||
@ -73,7 +73,6 @@ public function form(Schema $schema): Schema
|
||||
TextInput::make('title')
|
||||
->placeholder('Dirgahayu Purwakarta')
|
||||
->required()
|
||||
->maxLength(200)
|
||||
->autocomplete(false)
|
||||
->autofocus(),
|
||||
|
||||
|
||||
@ -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');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user