2025_11_20_145044_update_config.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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' => 'huishui_restriction',
  17. 'val' => "1000",
  18. 'remark' => '输钱达到限制值',
  19. 'group_id' => 1,
  20. 'created_at' => now(),
  21. 'updated_at' => now(),
  22. ],
  23. [
  24. 'field' => 'huishui_percentage',
  25. 'val' => "0.01",
  26. 'remark' => '输钱打到限制值,回水比例',
  27. 'group_id' => 1,
  28. 'created_at' => now(),
  29. 'updated_at' => now(),
  30. ],
  31. ]);
  32. }
  33. /**
  34. * Reverse the migrations.
  35. *
  36. * @return void
  37. */
  38. public function down()
  39. {
  40. //
  41. }
  42. };