浏览代码

Update 2021_12_15_120346_update_to_payments_table.php

1Day 3 年之前
父节点
当前提交
b4cde73528
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      database/migrations/2021_12_15_120346_update_to_payments_table.php

+ 2 - 2
database/migrations/2021_12_15_120346_update_to_payments_table.php

@@ -19,7 +19,7 @@ class UpdateToPaymentsTable extends Migration
             $table->string('payment_method');
             $table->dropColumn('payer');
             $table->dropColumn('payer_id');
-            $table->string('shop_item_product_id');
+            $table->string('credit_product_id');
         });
 
         DB::statement('UPDATE payments SET payment_method="paypal"');
@@ -36,7 +36,7 @@ class UpdateToPaymentsTable extends Migration
             $table->dropColumn('payment_method');
             $table->string('payer_id')->nullable();
             $table->text('payer')->nullable();
-            $table->dropColumn('shop_item_product_id');
+            $table->dropColumn('credit_product_id');
         });
     }
 }