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'); + }); + } +}