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],
|
['id' => $legacy->id],
|
||||||
[
|
[
|
||||||
'media_task_assignment_id' => $assignment->id,
|
'media_task_assignment_id' => $assignment->id,
|
||||||
'title' => Str::limit($legacy->title, 200),
|
'title' => $legacy->title,
|
||||||
'publication_date' => $legacy->broadcast ?? $legacy->created_at ?? now(),
|
'publication_date' => $legacy->broadcast ?? $legacy->created_at ?? now(),
|
||||||
'link' => Str::limit($legacy->link, 50),
|
'link' => Str::limit($legacy->link, 50),
|
||||||
'description' => 'Legacy Proof: '.($legacy->proof ?? '-'),
|
'description' => 'Legacy Proof: '.($legacy->proof ?? '-'),
|
||||||
|
|||||||
@ -73,7 +73,6 @@ public function form(Schema $schema): Schema
|
|||||||
TextInput::make('title')
|
TextInput::make('title')
|
||||||
->placeholder('Dirgahayu Purwakarta')
|
->placeholder('Dirgahayu Purwakarta')
|
||||||
->required()
|
->required()
|
||||||
->maxLength(200)
|
|
||||||
->autocomplete(false)
|
->autocomplete(false)
|
||||||
->autofocus(),
|
->autofocus(),
|
||||||
|
|
||||||
|
|||||||
@ -15,7 +15,7 @@ public function up(): void
|
|||||||
Schema::create('reports', function (Blueprint $table) {
|
Schema::create('reports', function (Blueprint $table) {
|
||||||
$table->id();
|
$table->id();
|
||||||
$table->foreignId('media_task_assignment_id')->constrained('media_task_assignment')->cascadeOnDelete();
|
$table->foreignId('media_task_assignment_id')->constrained('media_task_assignment')->cascadeOnDelete();
|
||||||
$table->string('title', 200);
|
$table->text('title');
|
||||||
$table->date('publication_date')->index();
|
$table->date('publication_date')->index();
|
||||||
$table->string('link');
|
$table->string('link');
|
||||||
$table->text('description');
|
$table->text('description');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user