fix: update 'writter' column type to text in media_monitorings table

This commit is contained in:
Yoga Pangestu 2026-06-04 13:49:23 +07:00
parent b0066ecc75
commit a30cfb28a5
3 changed files with 30 additions and 2 deletions

View File

@ -46,8 +46,7 @@ public static function configure(Schema $schema): Schema
->label('Penulis')
->placeholder('John Doe')
->autocomplete(false)
->required()
->maxLength(50),
->required(),
TextInput::make('link')
->label('Tautan (URL)')

View File

@ -58,6 +58,7 @@ public static function configure(Table $table): Table
TextColumn::make('writter')
->label('Penulis')
->limit(30)
->searchable()
->sortable(),

View File

@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('media_monitorings', function (Blueprint $table) {
$table->text('writter')->change();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('media_monitorings', function (Blueprint $table) {
$table->string('writter', 50)->change();
});
}
};