6
0
Fork 0

添加订单商品剩余待发货数量字段

release
vine_liutk 2021-12-17 14:59:09 +08:00
parent a317bf06bf
commit 29c5829677
1 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddRemainQuantityToOrderProductsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('order_products', function (Blueprint $table) {
//
$table->unsignedInteger('remain_quantity')->comment('剩余待发货数量');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('order_products', function (Blueprint $table) {
//
$table->dropColumn('remain_quantity');
});
}
}