add buyer_user_id to orders table

This commit is contained in:
2025-12-11 16:36:35 +08:00
parent 8495986dd3
commit a09dc352c1
@@ -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->text('buyer_user_id')->nullable()->default(null)->comment('平台买家 id');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('orders', function (Blueprint $table) {
$table->dropColumn('buyer_user_id');
});
}
};