{Ninja-Shell}
Home
Info
Upload
Command
View /etc/passwd
cPanel Reset Password
Filename: /var/www//arsu/database//migrations/2022_01_23_031359_add_column_to_orders_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class AddColumnToOrdersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('orders', function (Blueprint $table) { $table->string('order_type')->default('default_type'); $table->float('extra_discount')->default(0); $table->string('extra_discount_type')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('orders', function (Blueprint $table) { $table->dropColumn('order_type'); $table->dropColumn('extra_discount'); $table->dropColumn('extra_discount_type'); }); } }
./Ninja\.