From 01541c2909414571b870d50b29c0ff0bcc17aabe Mon Sep 17 00:00:00 2001 From: Nick Zeng Date: Fri, 30 Jan 2026 13:57:39 +0800 Subject: [PATCH] add raw hash for order --- ...30_150000_add_raw_hash_to_orders_table.php | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 backend/migrations/2026_01_30_150000_add_raw_hash_to_orders_table.php diff --git a/backend/migrations/2026_01_30_150000_add_raw_hash_to_orders_table.php b/backend/migrations/2026_01_30_150000_add_raw_hash_to_orders_table.php new file mode 100644 index 0000000..21e3f04 --- /dev/null +++ b/backend/migrations/2026_01_30_150000_add_raw_hash_to_orders_table.php @@ -0,0 +1,28 @@ +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'); + }); + } +};