From 29c5829677583ff286057fde5394bc86dbbc25b7 Mon Sep 17 00:00:00 2001 From: vine_liutk <961510893@qq.com> Date: Fri, 17 Dec 2021 14:59:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=AE=A2=E5=8D=95=E5=95=86?= =?UTF-8?q?=E5=93=81=E5=89=A9=E4=BD=99=E5=BE=85=E5=8F=91=E8=B4=A7=E6=95=B0?= =?UTF-8?q?=E9=87=8F=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...emain_quantity_to_order_products_table.php | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 database/migrations/2021_12_17_145444_add_remain_quantity_to_order_products_table.php diff --git a/database/migrations/2021_12_17_145444_add_remain_quantity_to_order_products_table.php b/database/migrations/2021_12_17_145444_add_remain_quantity_to_order_products_table.php new file mode 100644 index 00000000..76265b45 --- /dev/null +++ b/database/migrations/2021_12_17_145444_add_remain_quantity_to_order_products_table.php @@ -0,0 +1,34 @@ +unsignedInteger('remain_quantity')->comment('剩余待发货数量'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('order_products', function (Blueprint $table) { + // + $table->dropColumn('remain_quantity'); + }); + } +}