Edit File: 2025_01_08_124501_add_columns_to_orders_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('orders', function (Blueprint $table) { $table->string('api_key')->nullable(); $table->string('session_id')->nullable(); $table->text('token')->nullable(); $table->string('secret_key')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('orders', function (Blueprint $table) { $table->dropColumn('api_key'); $table->dropColumn('session_id'); $table->dropColumn('token'); $table->dropColumn('secret'); }); } };
Back to File Manager