refactor(content recap): change data type title from string to text and adjust maxlength validation

This commit is contained in:
Yoga Pangestu 2026-02-04 11:04:00 +07:00
parent f278a2d9c0
commit d343dbf6f9
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ public static function configure(Schema $schema): Schema
->autocomplete(false)
->autofocus()
->required()
->maxLength(255),
->maxLength(1000),
TextInput::make('link')
->label('Tautan')

View File

@ -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();