Ken 2 giorni fa
parent
commit
089b8e2c96
1 ha cambiato i file con 30 aggiunte e 0 eliminazioni
  1. 30 0
      database/migrations/2025_10_31_142226_update_users.php

+ 30 - 0
database/migrations/2025_10_31_142226_update_users.php

@@ -0,0 +1,30 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+return new class extends Migration {
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::table('users', function (Blueprint $table) {
+            // 添加汇率字段,decimal类型适合存储货币汇率
+            $table->string('username')->default('')->comment('tg USERNAME');
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        //
+    }
+};