fix: update 'writter' column type to text in media_monitorings table
This commit is contained in:
parent
b0066ecc75
commit
a30cfb28a5
@ -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)')
|
||||
|
||||
@ -58,6 +58,7 @@ public static function configure(Table $table): Table
|
||||
|
||||
TextColumn::make('writter')
|
||||
->label('Penulis')
|
||||
->limit(30)
|
||||
->searchable()
|
||||
->sortable(),
|
||||
|
||||
|
||||
@ -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();
|
||||
});
|
||||
}
|
||||
};
|
||||
Loading…
Reference in New Issue
Block a user