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'); + }); + } +};