|  | @@ -0,0 +1,34 @@
 | 
	
		
			
				|  |  | +<?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('withdraws', function (Blueprint $table) {
 | 
	
		
			
				|  |  | +            // 添加汇率字段,decimal类型适合存储货币汇率
 | 
	
		
			
				|  |  | +            $table->decimal('exchange_rate', 10, 6)->nullable()->comment('汇率');
 | 
	
		
			
				|  |  | +        });
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    /**
 | 
	
		
			
				|  |  | +     * Reverse the migrations.
 | 
	
		
			
				|  |  | +     *
 | 
	
		
			
				|  |  | +     * @return void
 | 
	
		
			
				|  |  | +     */
 | 
	
		
			
				|  |  | +    public function down()
 | 
	
		
			
				|  |  | +    {
 | 
	
		
			
				|  |  | +        Schema::table('withdraws', function (Blueprint $table) {
 | 
	
		
			
				|  |  | +            //
 | 
	
		
			
				|  |  | +        });
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +};
 |