database/migrations/2023_04_24_000000_product_description_to_text.php
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class ProductDescriptionToText extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('products', function (Blueprint $table) {
$table->text('description')->change();
});
}
public function down()
{
Schema::table('products', function (Blueprint $table) {
$table->string('description')->change();
});
}
}