fix amount

This commit is contained in:
2026-07-04 12:06:56 +03:30
parent 163097f42a
commit 4dea2fb212
2 changed files with 67 additions and 1 deletions
@@ -0,0 +1,17 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;
return new class extends Migration
{
public function up(): void
{
DB::statement('ALTER TABLE `orders` MODIFY `amount` DECIMAL(20,10) UNSIGNED NULL');
}
public function down(): void
{
DB::statement('ALTER TABLE `orders` MODIFY `amount` DOUBLE(15,6) UNSIGNED NULL');
}
};