add raw hash for order

This commit is contained in:
2026-01-30 13:57:39 +08:00
parent 082faf3455
commit 01541c2909
@@ -0,0 +1,28 @@
<?php
use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('orders', function (Blueprint $table) {
$table->char('raw_hash', 32)->nullable()->default(null)->comment('raw 字段的 MD5 哈希值,用于检测数据变化');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('orders', function (Blueprint $table) {
$table->dropColumn('raw_hash');
});
}
};