code/database/migrations/2023_04_29_200229_prices_in_order.php
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up()
{
Schema::table('order_product', function (Blueprint $table) {
$table->string('prices', 2000)->default('');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('order_product', function (Blueprint $table) {
$table->dropColumn('prices');
});
}
};