2025_12_10_152005_insert_config.php 753 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. /**
  9. * Run the migrations.
  10. *
  11. * @return void
  12. */
  13. public function up()
  14. {
  15. DB::table('config')->insert([
  16. [
  17. 'field' => 'group_language',
  18. 'val' => "zh",
  19. 'remark' => '群消息语言',
  20. 'group_id' => 1,
  21. 'created_at' => now(),
  22. 'updated_at' => now(),
  23. ]
  24. ]);
  25. }
  26. /**
  27. * Reverse the migrations.
  28. *
  29. * @return void
  30. */
  31. public function down()
  32. {
  33. //
  34. }
  35. };