新增商品問題修正
All checks were successful
Koori-ERP-Sync-Only / sync-update (push) Successful in 1m8s

This commit is contained in:
2025-12-31 17:22:56 +08:00
parent cdb01e9702
commit c152dc6d81
2 changed files with 36 additions and 1 deletions

View File

@@ -0,0 +1,28 @@
<?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('products', function (Blueprint $table) {
$table->decimal('conversion_rate', 10, 4)->nullable()->default(null)->change();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('products', function (Blueprint $table) {
$table->decimal('conversion_rate', 10, 4)->nullable(false)->default(1)->change();
});
}
};