| 12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- use Illuminate\Database\Migrations\Migration;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Support\Facades\DB;
- return new class extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- DB::table('config')->insert([
- [
- 'field' => 'maintenance_switch',
- 'val' => "1000",
- 'remark' => '维护开关',
- 'group_id' => 0,
- 'created_at' => now(),
- 'updated_at' => now(),
- ]
- ]);
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- //
- }
- };
|