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')
|
->label('Penulis')
|
||||||
->placeholder('John Doe')
|
->placeholder('John Doe')
|
||||||
->autocomplete(false)
|
->autocomplete(false)
|
||||||
->required()
|
->required(),
|
||||||
->maxLength(50),
|
|
||||||
|
|
||||||
TextInput::make('link')
|
TextInput::make('link')
|
||||||
->label('Tautan (URL)')
|
->label('Tautan (URL)')
|
||||||
|
|||||||
@ -58,6 +58,7 @@ public static function configure(Table $table): Table
|
|||||||
|
|
||||||
TextColumn::make('writter')
|
TextColumn::make('writter')
|
||||||
->label('Penulis')
|
->label('Penulis')
|
||||||
|
->limit(30)
|
||||||
->searchable()
|
->searchable()
|
||||||
->sortable(),
|
->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