[FEAT] 銷售訂單管理:補齊欄位、即時搜尋、篩選與來源自動判定
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('sales_orders', function (Blueprint $table) {
|
||||
$table->decimal('total_qty', 12, 4)->default(0)->after('total_amount');
|
||||
$table->string('name')->after('external_order_id');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('sales_orders', function (Blueprint $table) {
|
||||
$table->dropColumn(['total_qty', 'name']);
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user