Sid Gifari File Manager
🏠 Root
/
home2
/
meumer25
/
api.meumercado.app
/
database
/
migrations
/
Editing: 2021_11_07_221832_add_extra_discount_to_order_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class AddExtraDiscountToOrderTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('orders', function (Blueprint $table) { $table->decimal('extra_discount', 8, 2)->default(0); $table->decimal('change', 2, 8)->default(0); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('orders', function (Blueprint $table) { $table->dropColumn('extra_discount'); }); } }
Save
Cancel