2025_11_12_162239_insert_config.php 791 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. use Illuminate\Database\Migrations\Migration;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Support\Facades\Schema;
  5. use Illuminate\Support\Facades\DB;
  6. return new class extends Migration {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. DB::table('config')->insert([
  15. [
  16. 'field' => 'three_payment_switch',
  17. 'val' => "1",
  18. 'remark' => '三方支付提现开关(1:开启 0:关闭)',
  19. 'group_id' => 1,
  20. 'created_at' => now(),
  21. 'updated_at' => now(),
  22. ],
  23. ]);
  24. }
  25. /**
  26. * Reverse the migrations.
  27. *
  28. * @return void
  29. */
  30. public function down()
  31. {
  32. //
  33. }
  34. };