2025_12_05_173640_update_config.php 563 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. use Illuminate\Database\Migrations\Migration;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Support\Facades\Schema;
  5. return new class extends Migration {
  6. /**
  7. * Run the migrations.
  8. *
  9. * @return void
  10. */
  11. public function up()
  12. {
  13. DB::table('config')->where('field', 'maintenance_switch')->update(['group_id' => 1, 'val' => '0','remark'=>'维护开关(0正常,1维护中)']);
  14. }
  15. /**
  16. * Reverse the migrations.
  17. *
  18. * @return void
  19. */
  20. public function down()
  21. {
  22. //
  23. }
  24. };